Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Time Calculation | Numbers
Data Types in Python

bookChallenge: Time Calculation

Task

Swipe to start coding

You have 8 video calls scheduled today. Each call takes 9 minutes, and you only have 60 minutes available.

  1. Calculate how many total minutes you need for all calls and save it to total_minutes.
  2. Find how many minutes you are short and save it to shortfall.
  3. Calculate how many calls you can complete in the available time and save it to completed_calls.
  4. Find how many minutes will remain unused after completing full calls and save it to unused_time.
  5. Print all results using clear messages.

Solution

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 4
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

Suggested prompts:

Can you explain the difference between / and // in more detail?

What does the unary + or - operator do in Python?

Can you provide more examples of using these operators?

close

Awesome!

Completion rate improved to 5.26

bookChallenge: Time Calculation

Swipe to show menu

Task

Swipe to start coding

You have 8 video calls scheduled today. Each call takes 9 minutes, and you only have 60 minutes available.

  1. Calculate how many total minutes you need for all calls and save it to total_minutes.
  2. Find how many minutes you are short and save it to shortfall.
  3. Calculate how many calls you can complete in the available time and save it to completed_calls.
  4. Find how many minutes will remain unused after completing full calls and save it to unused_time.
  5. Print all results using clear messages.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 4
single

single

some-alt