You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Let's see the conditionals available
v1 = "Jennifer"
v2 = "Python"
v3 = 45
v4 = 67
v5 = 45
# Test for equality
print (v1 == v2)
# Test for greater than and greater than equal
print (v4 > v3)
print (v5 >= v2)
# Test for lesser than and lesser than equal
print (v4 < v3)
print (v5 <= v2)
# Inequality
print (v1 != v2)
False
True
TypeError Traceback (most recent call last)
in ()
10 # Test for greater than and greater than equal
11 print (v4 > v3)
---> 12 print (v5 >= v2)
13
14 # Test for lesser than and lesser than equal
TypeError: '>=' not supported between instances of 'int' and 'str'
The text was updated successfully, but these errors were encountered:
False
True
TypeError Traceback (most recent call last)
in ()
10 # Test for greater than and greater than equal
11 print (v4 > v3)
---> 12 print (v5 >= v2)
13
14 # Test for lesser than and lesser than equal
TypeError: '>=' not supported between instances of 'int' and 'str'
The text was updated successfully, but these errors were encountered: