If we have more than one if statement, is it possible to combine them? Like this:
x = raw_input("> ")
if x == a:
print "1a"
elif x == b:
y = raw_input("> ")
if y == a:
print "1y"
elif y == b:
print "1b"
elif y == c:
print "1c"
xy = raw_input("> ")
if xy = a:
print "x2"
elif xy = b:
print "x1"
else:
print "x1b"
else:
print "1x"
elif x == c:
n = 1+2
print n
elif x == d:
print "1d"
else:
print "1y"
Or otherwise something similar.