ExamVeda
Login
Home
Python Built In Functions
?

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

Answer & Solution
Correct Answer: Option B
The correct answer is Option B: 5.
The round() function in Python is used to round a floating-point number to the nearest integer.
When you pass 4.576 to the round() function, it rounds it to the nearest integer, which is 5.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.