Seksjon 1. Kapittel 6
single
Challenge: Time Calculation in Python
Sveip for å vise menyen
Oppgave
Sveip for å begynne å kode
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
10transactions if each takes7minutes, and assign the result to the variablerequired_time.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 6
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår