Section 1 - Instruction

Last time, we learned about variable scope - how variables exist in different "spaces" within our programs. Now let's explore something powerful: functions can actually call other functions!

Engagement Message

Have you ever wondered if functions can work together like a team?

Section 2 - Instruction

When one function calls another, it's like asking a colleague to help with part of the work. The first function pauses, lets the second function do its job, then continues with the result.

Engagement Message

Can you see how calculate_total uses add_numbers?

Section 3 - Instruction

This creates powerful combinations! We can build complex programs by combining simple functions. Each function handles one specific task, making our code easier to understand and debug.

Engagement Message

Notice how get_total relies on get_tax to do part of its work?

Section 4 - Instruction

Functions can call multiple other functions! Here's an example where one function uses several helpers:

Engagement Message

How many helper functions does use?

Sign up
Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal