Mega Code Archive
Categories
/
Python Tutorial
/
Statement
Have a block of code that is executed unless something bad happens
try: print 'A simple task' except: print 'What? Something went wrong?' else: print 'Ah...It went as planned.'