QUESTION IMAGE
Question
what will you see on the next line?
>> round(5.7)
Step1: Recall rounding - rule
The round() function in Python rounds a number. If the decimal part is 0.5 or greater, it rounds up; if less than 0.5, it rounds down.
Step2: Analyze 5.7
Since 0.7 > 0.5, 5.7 rounds up.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
6