QUESTION IMAGE
Question
what will you see on the next line? >>> round(7.8)
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: Apply rounding - rule to 7.8
Since 0.8 > 0.5, 7.8 is rounded 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
8