Report Bug

Qus

What will be the output of the following Python expression?

print(round(4.576))
Qus

निम्नलिखित पायथन एक्सप्रेशन का आउटपुट क्या होगा?

print(round(4.576))


A. 4.5
B. 5
C. 4
D. 4.6


Solution
B. 5



Explanation
This is a built-in function which rounds a number to give precision in decimal digits. In the above case, since the number of decimal places has not been specified, the decimal number is rounded off to a whole number. Hence the output will be 5.
CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz