Skip to content

Content Tagged "iterative"

Page 1 of 1

Content Tagged "iterative"

Cascade get value from dictionary in Python

May 31, 2016Categories: Software, Tutorial
Several times I've been faced with the problem: Get a value from a dictionary. If the key is not present, then get from another key. Normally, the implementation would go like this: Or, even worse, with try-catch statements. That's fine if the sequence is fixed, but what if you want to have some…

All tags