News

The traditional ways to do this in Python aren’t elegant. One is to write an if/elif ... use the key or some other variable as input. In many cases this works well, but can be cumbersome to ...