# L-8 MCS 260 Fri 14 Sep nested if else # # A suitable use of a nested if else occurs # in dialogues, to have follow-up questions # 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'