0

What is the missing

If the total is 98 Output Enter prelim grade Enter midterm grade Enter tentative grade The grade 98 is with highest honor https://code.sololearn.com/cB7pZ8ouvEVr/?ref=app

24th Nov 2022, 11:04 AM
Bacani Rocelle M.
Bacani Rocelle M. - avatar
3 Respostas
+ 2
if fgrade>=98: print(f"\nThe grade {fgrade} is with Higest honor!!!") #like this, use fstring, if you are trying to print 98 grade in output.. !
24th Nov 2022, 11:25 AM
Jayakrishna 🇮🇳
+ 5
Bacani Rocelle M. , in some input cases you may get a result with many decimal places like: input is: 93, 87, 97 => result is 92.33333333333333. to avoid this you should limit the number of decimal places by additionally using a precission argument. if we like to get only 2 decimal places we can use: ... print(f"\nThe grade {fgrade:.2f} is with ... !!!") ^^ ...
24th Nov 2022, 7:01 PM
Lothar
Lothar - avatar
0
Bro I think it's right. Because you have mentioned in code that >=98. So, your program is completely alright.
27th Nov 2022, 11:33 AM
Anonymous
Anonymous - avatar