Figures.get('e', 0) tells python to look for the key 'e' during the dictionary. If it isn't observed it returns 0. Because This is often The very first time 'e' is passed from the loop, the character 'e' isn't present in the dictionary still, And so the get system returns 0. https://andreopoog.anchor-blog.com/16698464/how-much-you-need-to-expect-you-ll-pay-for-a-good-buy-copyright-usa