0

How could i generate list of range in reverse direction. I meand in descending order

Range(20,1,2) Expected output [20,18,16,14,12,10,8,6,4,2]

9th Dec 2016, 8:03 PM
Amol Sandbhor
Amol Sandbhor - avatar
5 Antworten
+ 1
Perhaps Use List Slicing and See what happens... Python Course > More Types >> Lists Good Luck.
9th Dec 2016, 8:09 PM
ghostwalker13
ghostwalker13 - avatar
+ 1
I have this solution for you dude: numbers=list(range(20,1,-2)) print(numbers) >>> [20, 18, 16, 14, 12, 10, 8, 6, 4, 2]
9th Dec 2016, 9:03 PM
Andrés Fernando Foronda Espinal
Andrés Fernando Foronda Espinal - avatar
0
What is mean by finction list? If indint write list word what will happen?
9th Dec 2016, 9:19 PM
Amol Sandbhor
Amol Sandbhor - avatar
0
What is mean by finction list? If indint write list word what will happen?
9th Dec 2016, 9:19 PM
Amol Sandbhor
Amol Sandbhor - avatar
0
Can you repeat your question please?
10th Dec 2016, 4:08 AM
Andrés Fernando Foronda Espinal
Andrés Fernando Foronda Espinal - avatar