Section 1 - Instruction

Last time, we learned how functions can return values. Now let's practice combining everything - functions that take parameters AND return results for real-world tasks.

Engagement Message

Ready to build some practical functions?

Section 2 - Instruction

Let's create a function that calculates something useful. This function takes a price and tax rate, then returns the total cost:

Engagement Message

What makes this function useful in everyday life?

Section 3 - Instruction

The returned value can be used immediately! We don't always need to store it in a variable first. Watch how we use the result directly:

Engagement Message

Both approaches work - which feels more natural to you?

Section 4 - Instruction

Functions become powerful when they return values. We can use one function's output as another function's input, creating calculation chains:

Engagement Message

Can you follow the chain: what's the final result?

Section 5 - Practice

Type

Fill In The Blanks

Markdown With Blanks

Complete this function that converts minutes to hours and returns the result:

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