Jul-11-2020, 10:36 PM
i encounter this case a lot. in an elif sequence of code i need to perform 2 tests at one place. that often means an and or or between 2 tests. sometimes the 2nd test needs to run some code to produce what is to be tested. i usually have to put that code before the first if. sometimes i can do the test in a function. in C i could store the value to be tested if it was part of the 1st test. i wonder if anyone has worked out a general way of this that is Pythonic.
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.