How can i Output the nearst whole number in Python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can i Output the nearst whole number in Python

https://code.sololearn.com/c3UILU3EV8Ig/?ref=app

9th Mar 2023, 10:53 PM
Ammar Alshawafi
Ammar Alshawafi - avatar
3 Answers
+ 7
You need to use ceil() function from math module
9th Mar 2023, 11:21 PM
Lamron
Lamron - avatar
+ 7
Ammar Alshawafi , since the task description is saying: Output Format A percentage value rounded up to the nearest whole number. ^^^^^^^^^^^^ we should use ceil() function from math module
13th Mar 2023, 6:56 PM
Lothar
Lothar - avatar
+ 2
https://www.sololearn.com/Discuss/3197454/?ref=app You ask same question here also, if you have doubt then ask only once at a time don't repeat it.
10th Mar 2023, 7:00 AM
Sakshi
Sakshi - avatar