What is the point of 'return'?


#1



No particular exercise I'm stuck on, I'm just curious as to what the function return actually does.

In exercise 11. Making a purchase, it requires you to write the return function at the end of the 'for' loop, why is this? Does it assign the end total int to the variable name? Without this, the function will just return "None".



#2

Take a look at this POST which gives an explanation on that statement or perhaps this Thread


#3

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