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
  • 159,742
  • 34
  • 281
  • 339
Wycee El
  • 1
  • 1

0 Answers0