Please enable JavaScript to use CodeHS

Python Basics with Tracy 1

Lesson 7.3 Returning Values from Functions

Description

In this lesson, students will learn why we may want to return values from functions and how to implement this in their own programs. They will also take a deeper dive into the in keyword and how it can be used in programs.


Objective

Students will be able to:

  • use the return keyword to return values from function back to the main program
  • use the in keyword to check if a value is contained inside another