Dec-06-2017, 02:42 AM
@DeaD_EyE's answer may well be the more elegant answer. but is it the more pythonic one? is it the better one? now that you have seen them all, which would you code for this case? are there any you would be upset with if you see them in someone else's code? are there any you would be upset with if they are in contributions to one of your projects?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.