First I think it’s important to make a distinction: the FAQs I found in the forum(or google) all referred to the Learn Python course, where the Functions chapter has 17 lessons. I’m doing the “CS Path Intro”, whose Python Functions area has 11 lessons. The final one is a review, and this is where my doubt stems from.
First you’re asked to define a function, ok no problem with that. In step two, however, I’m having an issue, it says:
" Outside of the function, call
You can use the value
"Row " for
At the end of the first step, my code looked like:
def repeat_stuff(stuff, num_repeats): print()
because it explicitly asked to write an empty print statement, the problem comes when it’s time to fill in the blanks in step two(which I copied above, the “Outside of the function[…]” part), where I wrote the following code:
def repeat_stuff(stuff, num_repeats): return stuff*num_repeats repeat_stuff("Row", 3)
I thought the question was quite straigthforward and this would do it, but the tutorial header in the bottom says: " Expected "Row " to be passed into the function
After pondering about it for a while I couldn’t get what the exercise wanted out of me after all, so I asked for the solution. The problem is that it solves the entire lesson, which doesn’t answer what I should do at this particular step of the exercise. It adds other variables mentioned later on, but that’s not part of this stage and doesn’t really answer what I should do at this point.
If anyone can help me with this I greatly appreciate it.