07 - Conditional Expressions

 Conditional Expressions


# Example 1: 
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)


Logical Operators 

and, or, not


Example of in

a= [45,56,6]
print (45 in a)

OUTPUT

True

Post a Comment

0 Comments