+ 1

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

How to solve. I got and as 1.0

2 Answers

+ 6

Use dividing operation (all) then modulo of 2 will give 1 as answer

+ 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

+ 1

How to solve. I got and as 1.0

2 Answers

+ 6

Use dividing operation (all) then modulo of 2 will give 1 as answer

+ 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