Review: functions


hey, can anybody help me on my code?
I have no idea why it didn't work!

Review: Functions

a function ends the moment a return keyword is reached

in your case, on line 2. So there, the function ends, the rest of the code in the function is never reached


Yes, I deleted the line 2 and it worked!
Thank you so much!!!
I have been pending on this question for a whole hour!


The example in the exercise tricked you? Given that program uses a different design then the one you are building

Good you understand now you needed to remove that line