Whats the correct one? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Whats the correct one?

Help me huhuhuhu https://code.sololearn.com/cz7kccIKZkQj/?ref=app

16th Apr 2022, 3:42 PM
Aisy Danish Mohd Nazry
Aisy Danish Mohd Nazry - avatar
5 Answers
+ 2
Read the task description carefully: It asks us to round ***up*** to the next integer. You can use ceil() from math module instead of round()
16th Apr 2022, 3:48 PM
Lisa
Lisa - avatar
+ 1
Put this in the top of your script: from math import ceil Then you can use ceil() in the code
16th Apr 2022, 3:55 PM
Lisa
Lisa - avatar
0
Thank you brother
16th Apr 2022, 3:49 PM
Aisy Danish Mohd Nazry
Aisy Danish Mohd Nazry - avatar
0
Why my ceil function dont work
16th Apr 2022, 3:54 PM
Aisy Danish Mohd Nazry
Aisy Danish Mohd Nazry - avatar
0
Thanks
16th Apr 2022, 3:56 PM
Aisy Danish Mohd Nazry
Aisy Danish Mohd Nazry - avatar