+ 1

Print(15//2/2//2%2)

How to solve. I got and as 1.0

23rd May 2020, 1:26 AM
Priyanka
Priyanka - avatar
2 Respuestas
+ 6
Use dividing operation (all) then modulo of 2 will give 1 as answer
23rd May 2020, 1:35 AM
Raj Kalash Tiwari
Raj Kalash Tiwari - avatar
+ 5
Since they all have same precedence ,just solve it left to right 15//2/2//2%2 7/2//2%2 3.5//2%2 1.0%2 1.0
23rd May 2020, 1:40 AM
Abhay
Abhay - avatar