0

Reversing List items using range

How to print 100 to 1 using range function?

21st Apr 2020, 10:29 AM
Vishaal
Vishaal - avatar
5 ответов
+ 4
range(100,1,-1)
21st Apr 2020, 10:33 AM
Oma Falk
Oma Falk - avatar
+ 3
Your question is not clear. Are you asking how to reverse a list or to print 100 down to 1 by using range function?
21st Apr 2020, 10:37 AM
Ipang
+ 2
list=list(map(int,range(100,0,-1))) https://code.sololearn.com/c46VRRylvBBp/?ref=app
21st Apr 2020, 8:08 PM
Solo
Solo - avatar
0
range(100,0,-1)
21st Apr 2020, 10:44 AM
ANJALI SAHU
0
list=[] for i in range(100,0,-1): list.append(i) print (list,end=" ") And I bet, it will never fail . I have also faced this problem , that's why i know why r u asking this simple question. Hope it will help u.
21st Apr 2020, 11:11 AM
Raj Laxmi Verma
Raj Laxmi Verma - avatar