In [2]:
x = 10
if x == 10:
    print 'I am here'
else:
    print "I am there"


I am here

In [3]:
x = 10; y = 30; z = 100;

if (x - y) > 0 or z % 30 == 20:
    print 'one'
elif (x - y) < 0 and z % 30 != 20:
    print 'two'
else:
    print 'Three'


two

In [4]:
var = 100
if var < 200:
    print "Expression value is less than 200"
    if var == 150:
        print "Which is 150"
    elif var == 100:
        print "Which is 100"
    elif var == 50:
        print "Which is 50"
elif var < 50:
    print "Expression value is less than 50"
else:
    print "Could not find true expression"

print "Good bye!"


Expression value is less than 200
Which is 100
Good bye!