800 minute in hour. hour write in 1st line and remains minute in 2nd line | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

800 minute in hour. hour write in 1st line and remains minute in 2nd line

Please help me

19th Jan 2022, 5:18 PM
JUNSAMI
JUNSAMI - avatar
6 ответов
+ 2
I guess your question is to make 888 minutes in hours not 800 you can try: print(888//60) print(888%60)
19th Jan 2022, 6:37 PM
YoPycode
+ 1
Your output 13 20 Expected output 14 48
19th Jan 2022, 6:30 PM
JUNSAMI
JUNSAMI - avatar
0
you can use modulo and the rest of division : print(800//60) print(800%60)
19th Jan 2022, 6:16 PM
YoPycode
0
I do that but answer is wrong
19th Jan 2022, 6:19 PM
JUNSAMI
JUNSAMI - avatar
0
what is the error message you get?
19th Jan 2022, 6:28 PM
YoPycode
0
Do you want 800 minutes in hours and the rest in minutes right?
19th Jan 2022, 6:34 PM
YoPycode