characters.get('e', 0) tells python to search for The crucial element 'e' from the dictionary. If it is not identified it returns 0. Because This is certainly The very first time 'e' is passed in the loop, the character 'e' will not be found in the dictionary nevertheless, so the get system returns 0.I don't even have to contain the so-identified a