>>> print("{0[0]}".format({0:23}))
23
>>> print("{0[foo]}".format({'foo':23}))
23
>>> print("{0[0]}".format({'0':23}))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
KeyError: 0
>>> print("{0['0']}".format({'0':23}))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
KeyError: "'0'"