Review: functions


#1


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


Review: Functions
#2

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


#3

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


#4

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


#5