Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Utmaning: Tidsberäkning | Nummer
Datatyper i Python

bookUtmaning: Tidsberäkning

Uppgift

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.

Lösning

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 4
single

single

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

Suggested prompts:

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

What does unary plus and minus mean in this context?

Can you give more examples of using these operators in Python?

close

bookUtmaning: Tidsberäkning

Svep för att visa menyn

Uppgift

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.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 4
single

single

some-alt