Python call and return


what do code call and return actually do? Thanks for answering and support :smiley:


functions are sort of a like a task list, its a set of instructions which needs to be done.

But a task list is nice, but not doing much by itself, it needs to be executed, that is what function calls do, they call the functions so they get executed.

return is literally what it says, the function hands you something back after it completed the task. Which we can then print or store in a variable

for such general questions, there exist plenty of guides and tutorials which you can use. Utilize them wisely, codecademy forum is much more suited for asking specific question. This way, you harvest the best of both worlds


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