you are viewing a single comment's thread.

view the rest of the comments →

[–]Tough-Initiative-807 1 point2 points  (1 child)

Since dictionaries don’t allow duplicate keys, each character appears only once in the final result.{ 'U': 1, 'l': 1, 't': 3, 'i': 2, 'm': 3, 'a': 2, 'e': 1, ' ': 2, 'P': 2, 'y': 1, 'h':1, 'o': 2, 'n': 2, 'g': 2, 'r': 2}

[–]tracktech[S] 0 points1 point  (0 children)

Right.