In Python, many statements can cause errors, but I would like to know what are the simplest statements that can cause an Error except for NameError
and SyntaxError
and their subclasses such as IdentationError
Using the interactive Python shell, I have tried using single characters in statements but they are all NameError
s or SyntaxError
s, and I tried two characters, it is also the same, so I wonder if there are any possibilities to cause other types of errors by using 3 or fewer characters in Python. if this is impossible, then why so?