Demonstrates handling exceptions
# try/except try: num = float(raw_input("Enter a number: ")) except: print "Something went wrong!"
1. | Simple exception handling example | ||
2. | Catch exception in a function | ||
3. | Handling Exceptions | ||
4. | handle multiple exceptions | ||
5. | Exception handlers handle Exceptions occur inside functions. |