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