#!/usr/bin/python3 # -*- coding: utf-8 -*- """ Below are some basic errors. There are many more. """ # SyntaxError The program contains invalid code that cannot be understood. 3 = x # IndentationError The lines of the program are not properly indented. print("indent error") # ValueError An invalid value is used – can occur if giving letters to int(). int("a") # NameError The program tries to use a variable that does not exist. print(whatsthis) # TypeError An operation uses incorrect types – can occur if adding an integer to a string. "a" + 3