Minutes Into Seconds

Python FundamentalsEasy+10 XP+10

Minutes Into Seconds

A workout timer needs everything in seconds.

Write a function minutes_to_seconds(minutes) that returns how many seconds are in that many minutes. There are 60 seconds in a minute.

minutes is always a whole number, 0 or more. Make sure you return the answer — printing it isn't enough.

Examples

minutes = 2
returns 120
minutes = 0
returns 0
minutes = 5
returns 300

Hints

Solve it to unlock the solution

Once your code passes every test, a reference solution shows up here so you can compare it with yours.

solution.py
CtrlEnterto run