What will be the output of the following Python expression? round(4.576)

Questions & AnswersCategory: Programming LanguageWhat will be the output of the following Python expression? round(4.576)
1 Answers
Geek Boy Staff answered 2 years ago

c. 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.