1

I am trying to understand the Python logic behind removal of duplicates in a dictionary. It seems that the last element in line is always kept. Is that the case?

print({True: 5, True: 10}) gives {True: 10}.

Why not {True: 5}?

Nicolas Berthier
  • 459
  • 1
  • 8
  • 17

0 Answers0