Mega Code Archive
Categories
/
Python
/
Exception
Demonstrates handling exceptions
# try/except try: num = float(raw_input("Enter a number: ")) except: print "Something went wrong!"