0

period

Is there a function to save periods? like LG[5,0) how should I save this?

9th Dec 2019, 4:39 PM
Zohal
Zohal - avatar
1 Answer
0
Try thinking about period as a range. More specificly in Python: LG = tuple(range(5, 0, -1)) print(LG) # (5, 4, 3, 2, 1) print(3 in LG) # True print(7 in LG) # False But it works only with integers.
9th Dec 2019, 5:18 PM
Asman-H
Asman-H - avatar