0Pricing
Python For Kids · Lesson

Arguments and Return Values

Learn to pass data into functions and get results.

1

Arguments and Return Values

Welcome back to the Functions lesson! Today, we'll learn how to pass data into functions using arguments and get results back using return values.

Arguments and Return Values — illustration 1

2

What are Function Arguments?

Arguments are values you pass into a function to provide it with the data it needs to perform its task. They make functions more flexible and reusable.

  • Parameters: Variables listed inside the function's parentheses.
  • Arguments: Values passed to the function when it is called.

Let's see how arguments work in Python functions.

All lessons in this course

  1. What are Functions?
  2. Defining Your Own Functions
  3. Arguments and Return Values
  4. Lambda Functions
← Back to Python For Kids