[PYTHON] Hello i have to create a list which starts at 1 and ends at 20, and then convert this list into a nested list which should look like this: [[1,2,...,20],[20,19,...1]]
.
I did only this:
list = []
for i in range(1,21):
lista.append(i)
i += 1
which gives me a normal [1, ... 20]
list,
but I don't know how to change it to a nested list with a reverse list.