Step 1 · Challenges
Checkpoint challenges
Five short programs that mix this chapter's input(), int(), float() and f-strings with the maths from Chapter 3. The tests type the answers for you, in the order the task gives.
Film length
Ask how long a film is in minutes (a whole number). Print it in hours and minutes. If they type 135, it prints:
Length: 2h 15m
0 of 5 passed. Pass them all to finish the lesson.Next lesson: 5.1 True or false? →