Logical AND in If Statement :

a = 200
b = 33
c = 500
if a > b and c > a:
    print("Both conditions are True")

Output :

Both conditions are True

Logical OR in If Statement :

if a > b or a > c:
    print("At least one of the conditions is True")

Output :

At least one of the conditions is True

Nested If Statements :

x = 41
if x > 10:
    print("Above ten,")
    if x > 20:
        print("and also above 20!")
    else:
        print("but not above 20.")

Output :

Above ten,
and also above 20!

Pass in If Statement :

a = 33
b = 200
if b > a:
    pass

Output :