Using the Python return Statement Effectively
Howard Francis
1:26:47
Description
The Python return statement is a key component of functions and methods. You can use the return statement to make your functions send Python objects back to the caller code. These objects are known as the function’s return value. You can use them to perform further computation in your programs.
Using the return statement effectively is a core skill if you want to code custom functions that are Pythonic and robust.
In this course, you’ll learn:
What You'll Learn?
- How to use the Python
return
statement in your functions - How to return single or multiple values from your functions
- What best practices to observe when using
return
statements - How to structure more advanced return statements
More details
User Reviews
Rating
Howard Francis
Instructor's CoursesWanting to learn Python, Howard did what any college instructor would do – he taught a class in it. He loved it. (You’ll have to ask his students how they felt.) He continued learning after the course was over, and found Real Python to be one of the most useful sources of information. Now he’s here hoping to help others.
Howard currently teaches Computer Science and Mathematics at the University of Pikeville in eastern Kentucky. An amateur musician, he plays trumpet in local wind bands, organ at his church, and is learning guitar.

Real Python
View courses Real Python- language english
- Training sessions 21
- duration 1:26:47
- Release Date 2023/01/05