Ad
  • Custom User Avatar

    I feel that you could use Counter instead. It automatically creates a dictionary from the string instead of using a for loop to create it.

    You could check out what I did for an example.