Characters.get('e', 0) tells python to look for the key 'e' from the dictionary. If it's not discovered it returns 0. Since This really is The 1st time 'e' is passed through the loop, the character 'e' will not be found in the dictionary but, Hence the get approach returns 0. https://dmtusa13456.blazingblog.com/36373927/get-psychedelics-online-fundamentals-explained