Examveda

What does the '//' operator do when used with negative numbers?

A. Returns the positive quotient

B. Returns the negative quotient

C. Rounds down to the nearest integer

D. Rounds up to the nearest integer

Answer: Option C

Solution (By Examveda Team)

The // operator performs floor division, rounding down.

This Question Belongs to Python Program >> Variable Names And Operators

Join The Discussion

Related Questions on Variable Names and Operators