0
Reversing List items using range
How to print 100 to 1 using range function?
5 ответов
+ 4
range(100,1,-1)
+ 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?
+ 2
list=list(map(int,range(100,0,-1)))
https://code.sololearn.com/c46VRRylvBBp/?ref=app
0
range(100,0,-1)
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.