1# the 1st technique is standard way of calculating modulus
2# the 2nd technique is doing samething using // operator
3print(10%7)
4print(10 - (7 * (10//7)))
5
6# Output:
7# 3
8# 3
1# let say "a" is our varable then,
2# and that is a is 25
3a % 10
4# then this returns 5 because % gets the remainder of a / 10
1x1 = int(input())
2y1 = int(input())
3x2 = int(input())
4y2 = int(input())
5
6if( ( (x2-x1) % 2 = 1 and (y2-y1) % 2 = 1 ) or ( (x2-x1) % 2 = 0 and (y2-y1) % 2 = 0) ):
7 print('YES')
8else:
9 print('NO')
1# Modulus is the reminder of the 2 divisions, ex 25 % 2 = 1
2#ie, 2*12 = 24 and the number is 25 so when we divide 25/2 the reminder is 1
3
4print(25%2)
5# Output = 1
6#Hope you understood that, have a nice day :D