if条件
x=1
y=2
z=3
if x>y:
print('x is greater than y.')
if x<y:
print('x is less than y.')
if x<y<z:
print('x is less than y,and y is less than z.')
a=2
b=2
if a==b:
print('a is equal to y.')
if a!=b:
print ('a is not equal to y.')
if else条件
x=1
y=2
z=3
if x>y:
print('x is greater than y.')
else:
print('x is less or equal to y.')
if elif else条件
x=1
y=2
z=3
if x>y:
print('x is greater than y.')
elif x>y:
print('x is less or equal to y.')
else:
print(x)