3 ms·
> current_day in [x, y, z] Your pseudocode is idiomatic Python code :)
by obtu 15y ago
> current_day in [x, y, z]
Your pseudocode is idiomatic Python code :)
- gbog 15y agoYes, it did strike me how JS and Ruby are hard to read compared to Python's "if x in [a, b, c]". Moreover, the memoise part is better handled with a decorator: it is a special behavior of the function and don't relate to its logic (its body).