News

One well-known benefit of using mapping types such as dictionaries is that the searching is very fast compared to a sequential lookup as in the above if - elif - else statements or using a for loop, ...
This is where I think Python falls a bit short compared to more functional languages. Now, I don't mind the new syntax at all, to me it's much clearer than C, but if the if/else statement acted ...