Too Many If-Elif Conditions in Python? Use Dictionaries Instead
An unconventional way Python dictionaries can clean up your code
Published in
3 min readJun 22, 2021
Today, I want to share a quick but useful tip that I never see mentioned in articles about Python dictionaries. I use it frequently.
If you are already familiar with Python dictionaries, you can skip ahead to the second…