Please enable JavaScript to use CodeHS

AP Computer Science Principles in Python

Lesson 5.4 Functions and Return Values 1

Description

In this lesson, students learn about return values so they can write functions that do some work and send the result back or use later in the program.


Objective

Students will be able to:

  • Explain the purpose of returning a value from a function.
  • Define functions that return values.
  • Create programs that define and call functions with return values and store the result for later use.