← Innovation PlaygroundMISSION 23 / 100 · Coding Studio

Functions and return values

Use a reusable function to convert minutes to seconds.

1. Explore the controls

Change the inputs and observe the model's response.

2. Observe the results

Seconds120

How the model works

def seconds(minutes):
  return minutes * 60
YOUR MISSION

3. Reach the target

Adjust the controls to obtain the following output. Multiple valid solutions may exist.

Seconds420
Need a hint?

One minute contains 60 seconds.

Explore, then check your answer.

Simplified educational model. No real hardware is controlled. Code examples are illustrative and not executed as arbitrary programs.