Jan-31-2020, 11:41 PM
this is an actual line from the file i am currently working on ...
(i like to prefer "x" as the iteration variable name in comprehensions)
elif all(isinstance(x,(int,float))for x in items) and all(x<0x110000 for x in items):where i am wondering if doing it this way ...
elif all(isinstance(x,(int,float)) and x<0x110000 for x in items)would be better. it is certainly shorter. can that be of value to make code be more Pythonic?
(i like to prefer "x" as the iteration variable name in comprehensions)
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.