Examveda

What is the result of 5 / 2 // 2 ?

A. 2.0

B. 2

C. 1

D. 1.0

Answer: Option C

Solution (By Examveda Team)

Division and floor division have the same precedence and are evaluated left to right.

This Question Belongs to Python Program >> Precedence And Associativity

Join The Discussion

Related Questions on Precedence and Associativity