3 ms·
So are you saying python is not a sane language? >>> a = {} >>> a['foo'] Traceback (most recent call last): File "<stdin>", line 1, in <modul
by TylerE 14y ago
So are you saying python is not a sane language?
>>> a = {}
>>> a['foo']
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
KeyError: 'foo'