I've to use a conditional statement for thousands of entries in a list of lists and I cannot use a dataframe or any other data structure for that matter.
The condition is to check if a number lies in a range let's say >= 10 and <= 20.
Which of the following would be more efficient and why?
if n >= 10 and n <= 20:
expression
if 10 <= n <= 20:
expression
if n in range(10, 21):
expression