Contribute Media
A thank you to everyone who makes this possible: Read More

13 fun facts about Python's return statement for savvy programmers

Description

Python’s return statement is one of the first keywords introduced to new learners of the language. We’re taught that it “tells Python the function is done” and often not much else about it! What happens if you forget to include a return at the end of a function? What if you try to use one outside of a function? Can a function return another function? Come learn about all of the cool things you can achieve in your programs through a better understanding of return statements!

Details

Improve this page