Common error messages

AttributeError: When you see this message, check for typos and make sure that you are returning a value.

EOF: This is an abbreviation for "end of file". If you see this term, the computer was searching for a character, such as a right parenthesis, but never found it.

EOL: This is an abbreviation for "end of line". You might see this term if, for example, the computer was searching for the end of a string but didn't see it before the line ended.

IndexError: This message usually means that the index is greater than or equal to the length of the string or sequence.

NameError: This occurs when the name being used has not been defined. Sometimes this means that there is a typo. Another common problem is when a name has been defined inside a function definition but is used elsewhere.

SyntaxError: There is a syntax rule being broken. Sometimes there will be an arrow indicating where the error was detected (which may not be the same place as where the error occurred).

TypeError: You might see this message if you are trying to use a function on the wrong type of input.

ValueError: You might see this message if you are trying to use a function on the wrong value, such as trying to use int on an arbitrary string.

ZeroDivisionError: This message will occur when you try to use division, quotient, or remainder when the second number is zero.