Exercise: Check if number is even
num = 12
# check if num is even using the modulo operator
is_even = num % 2
print(is_even)
Python
Setting up Python environment...
Output
num = 12
# check if num is even using the modulo operator
is_even = num % 2
print(is_even)
Setting up Python environment...