# L-8 MCS 260 Fri 29 Jan 2010 : followup.py # An illustration of a nested if-else statement # to handle followup questions in a dialogue. ans = raw_input('happy ? (y/n) ') if ans == 'n': ans = raw_input('bored ? (y/n) ') if ans == 'y': print 'class is soon over' else: print 'but it is Friday' else: print 'keep up the good work'