TypeError: ‘type’ object is not subscriptable when indexing in to a dictionary
Normally Python throws NameError if the variable is not defined: However, you’ve managed to stumble upon a name that already exists in Python. Because dict is the name of a built-in type in Python you are seeing what appears to be a strange error message, but in reality it is not. The type of dict is a type. All types are objects in … Read more