Conditional Expressions
# Example 1:
if (condition 1):
print("Yes")
elif (condition 2):
print("No")
elif (condition 3):
print("NA"
else:
print("End")
if (condition 1):
print("Yes")
elif (condition 2):
print("No")
elif (condition 3):
print("NA"
else:
print("End")
Relational Operators
== (equals)
>= (greater than/equal to)
<= (less than/equal to)
>= (greater than/equal to)
<= (less than/equal to)
Logical Operators
and, or, not
Example of in
a= [45,56,6]
print (45 in a)
print (45 in a)
OUTPUT
True
0 Comments