0
$ python --version
Python 2.7.6
python
>>> for k in {True:'a', True:'b'}: print(k)
True
>>> for k in {False:'a', True:'b'}: print(k)
False
True

Why isn't the second item displayed in the first case?

jpp
  • 147,904
  • 31
  • 244
  • 302
Wycee El
  • 1
  • 1

0 Answers0