Maciej Zalwert
4 min readApr 9, 2021
Image by Egor Kamelev from Pexels

Python quick tip: DICT or IF for getting a value? Performance & memory battle within python standard modules.

Are you afraid of unknowns, and you always stay with only one way of implementation? Or you want to be a better python programmer?

Let me show you on why to use dict instead of if statements in your python program.

Background:

Maciej Zalwert

Data Scientist with 5+ years of broad-based experience in building data-intensive solutions for diverse industries