PYTHON ERROR TYPES
- Sammy Lyu

- Dec 12, 2025
- 1 min read
There are many ways to mess up a code in the Python language. Here I am going to list out as many of those errors as possible
As of writing, my Python version is 3.14
TypeError
This particular error occurs when the WRONG DATA TYPE is used for a particular function. A great example is the len function which calculates STRINGS, so if a float or integer was put in, it will produce this error.
SyntaxError
This common error is due to a "grammatical" mistake in the code, maybe you forget a ", or forgot to close the statement with a ). Basically, check your code again for spelling mistakes for punctuation.
ValueError
This occurs when a function receives an accepted data type but is expecting you to input a value within its computational parameters, or values thay make sense. For example, the INT function expects a number to convert into an integer, but if a string were given, it would produce this error. Because string cannot be converted into a known integer.