Real Python
  • Start Here
  • Learn Python
    Python Tutorials →
    In-depth articles and video courses
    Learning Paths →
    Guided study plans for accelerated learning
    Quizzes & Exercises →
    Check your learning progress
    Browse Topics →
    Focus on a specific area or skill level
    Community Chat →
    Learn with other Pythonistas
    Office Hours →
    Live Q&A calls with Python experts
    Podcast →
    Hear what’s new in the world of Python
    Books →
    Round out your knowledge and learn offline
    Reference →
    Concise definitions for common Python terms
    Code Mentor →Beta
    Personalized code assistance & learning tools
    Unlock All Content →
  • More
    Learner Stories Python Newsletter Python Job Board Meet the Team Become a Tutorial Writer Become a Video Instructor
  • Search
/
  • Join
  • Sign‑In

The Python return Statement (Quiz)

Howard Francis
Using the Python return Statement Effectively Howard Francis 04:00
Recommended Tutorial Course Slides (.pdf) Sample Code (.zip) Ask a Question
  • Contents
  • Discussion

Become a Member to take the quiz.

Become a Member to join the conversation.

Course Contents

Overview
95%
  • Syntax for Writing return Statements in Python
  • Using the Python return Statement Effectively (Overview) 01:17
  • Reviewing Python Functions 02:46
  • Using Implicit Returns in Functions 03:15
  • Using Explicit Returns in Functions 06:18
  • Returning vs Printing 05:40
  • Returning Multiple Values 03:25
  • Best Practices for Using return in Python
  • Returning None Explicitly 02:53
  • Remembering to Return and Keeping It Readable 04:11
  • Returning Values vs Modifying Global Variables 05:08
  • Using return Statements With Conditionals 05:49
  • Returning Boolean Values 04:48
  • Returning Expressions With Boolean Operators 05:28
  • Using return to Short-Circuit Your Loops 04:13
  • Recognizing and Avoiding Dead Code 01:56
  • Returning Multiple Values With namedtuple 04:34
  • Advanced Uses of return in Python
  • Using Functions as Return Values: Closures 05:13
  • Taking and Returning Functions With Decorators 06:43
  • Returning User-Defined Objects With Factory Patterns 04:51
  • Using return With try and finally Blocks 03:53
  • Using the Python return Statement Effectively (Summary) 00:52
  • The Python return Statement (Quiz) 04:00
  • Using return vs yield in Generator Functions 03:46

© 2012–2025 Real Python ⋅ Privacy Policy