try: print 1/0 except ZeroDivisionError: print "You can't divide by zero!"
Python will display "ZeroDivisionError" if you divide something with zero