7. Strings in functions


Is this exercise broken, or is my brain broken? Note the error, wherein apparently the issue is that my code hasn't returned "Waynesworld." Am I missing something really obvious in the directions here?


on line 3 you have your function with parameter s

then on line 8 you call your function, so the value n (argument) gets copied into s (parameter)

so then you want to update s by adding world to it, then return s


I understand why it works with "Helloworld." I don't see anything in the directions that makes references to inserting "Waynes" as part of the output.


well, the exercise calls the function multiply times with different strings to verify your function works correctly. Waynes is one of the test cases


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.