← Back to challenges

Convert Hours into Seconds

PythonEasymathnumberslanguage_fundamentals

Instructions

Write a function that converts hours into seconds.

Examples

how_many_seconds(2) ➞ 7200

how_many_seconds(10) ➞ 36000

how_many_seconds(24) ➞ 86400

Notes

  • 60 seconds in a minute, 60 minutes in an hour
  • Don't forget to return your answer.
python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Maximum Edge of a Triangle