In the first if statement, all the conditions have to be fulfilled since we’re using the and operator.
In the second if statement, the Boolean expression would be true if either or both of the clauses are satisfied because we are using the or operator.
xxxxxxxxxx
num = 12
if num % 2 == 0 and num % 3 == 0 and num % 4 == 0:
# Only works when num is a multiple of 2, 3, and 4
print("The number is a multiple of 2, 3, and 4")
if (num % 5 == 0 or num % 6 == 0):
# Only works when num is either a multiple of 5 or 6
print("The number is a multiple of 5 and/or 6")