Help! "Learn Python: Functions, Lesson 11: Review"

I still can’t figure out how to fix the problem. I am still trying to create the first set of lyrics.

https://www.codecademy.com/paths/computer-science/tracks/cspath-intro/modules/cspath-python-functions/lessons/intro-to-functions/exercises/review

def repeat_stuff(stuff = "Row ", num_repeats = 10):
  print(stuff * num_repeats)
  return(stuff * num_repeats)
lyrics = repeat_stuff("Row ", 3)+ str("Your Boat")

1 Like

what problem

1 Like

Well what I have coded doesn’t work. The function works but not the lyric part

1 Like

You’ve set lyrics equal to something. That is all.

1 Like

How are you measuring whether it works? What does work mean? What is your function doing differently from what you need it to do? Do you know what should be different about its behaviour? What are you currently trying to make happen? What is stopping you from doing that?

Perhaps you might even argue that it does work, but doesn’t pass the exercise, in which case the question is something else entirely (but still really important that anyone looking at it understands what the situation is)

If you expand your questions a bit further than “fix” and “work” then you’ll probably find yourself a whole lot closer to the solution before you’ve even asked anything. Also, anyone who might answer has a better chance at understanding the situation.

1 Like