Computer Science

Add parentheses to the following expression to make the order of evaluation more clear.

y % 4 == 0 and y % 100 != 0 or y % 400 == 0

Python Data Handling

23 Likes

Answer

((y % 4) == 0) and ((y % 100) != 0) or ((y % 400) == 0)

Answered By

15 Likes


Related Questions