How does `Return` work?

I still have problems understanding the “Return” concept especially in the light of the way it is explained in the lesson here. The more i read it, the more i get confused. I have been stucked here for more than 2 weeks and honestly i am already frustrated, Please i need a very simple and detailed explanation using same example in the lesson. One of my major confusion is the use of the word “result”-Is this a variable? Are we going to always have “result=??? as a variable in a function that has “return”?” I am not clear on what is meant by “return” terminates the body of a function. why do we need return? Please i am not just clear on all these. i will rather advise that codeacademy update this session and explain the concept in a better and simpler manner. I must also say the use of “divide_by_four” is a major part of the confusion. Can you also explain why you have “result” as part of the body? Please i need urgent help in order to be able to move forward. Thank you

11 Likes