l = [1, 2, 3] try: print l[5] except IndexError: print 'ops' else: print 'nessuna eccezione' finally: print 'bye bye'