Kurssisisältö
Data Types in Python
Data Types in Python
4. Bring All the Topics Together
Challenge: Time Calculation in Python
Tehtävä
Swipe to start coding
Imagine you are a bookkeeper, and you need to process 10
financial transactions. You've noticed that each transaction takes an average of 7
minutes, but you only have 60
minutes available.
- Calculate how many transactions you couldn't complete and assign the result to the variable
remaining_tasks
. - Calculate how many minutes would be needed to complete all
10
transactions if each takes7
minutes, and assign the result to the variablerequired_time
.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 1. Luku 6
Challenge: Time Calculation in Python
Tehtävä
Swipe to start coding
Imagine you are a bookkeeper, and you need to process 10
financial transactions. You've noticed that each transaction takes an average of 7
minutes, but you only have 60
minutes available.
- Calculate how many transactions you couldn't complete and assign the result to the variable
remaining_tasks
. - Calculate how many minutes would be needed to complete all
10
transactions if each takes7
minutes, and assign the result to the variablerequired_time
.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 1. Luku 6