p
y
c
h
a
l
l
e
n
g
e
r
Home
Python Basics
Booleans
Exercise: Comparison operators - Equal
Exercise: Comparison operators - Equal
Compare
num1
and
num2
to check if they are equal. Use the
Equal
operator. Assign the result of this comparison to
is_equal
.
Premium
reset
num1 = 10 num2 = 12
is_equal =
print(is_equal)
Python
Setting up Python environment...
Output