Dec 10, 2021
A case statement in my opinion is less readable that what I offered here. It really depends on your conditions though, if they are simple, I'd use the Dict approach as it creates a very readable and clean code segment without extra' ifs' behind the scene.