I have two variables n1 and n2 that gives random numbers in a range and is always n1 < n2
I want to make two lists:
First list that has all of the values of n1 and n2 in increasing order
Second list that has all of the values of n2 and n1 in decreasing order
So I tried like this
Li1 = list(range(n1,n2))
Li2 = list(range(n2,n1))
But what I get is this:
Li1: [10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29]
Li2: []
The second list is always empty. But it suppose to be like Li1 but in decreasing order