if exp: statement else: statement
#!/usr/bin/python if 1 < 2: print 'True'; else: print 'False'; #ternary condition a = True if (1 < 2) else False; print a;
if exp: statement elif exp: statement else: statement
#!/usr/bin/python grade = 95 if 90 <= grade <= 100: print('A') elif 80 <= grade < 90: print('B') else: print('Work harder ...')