Reversed List
Reversed List
def reversed_list(l):
reverse = []
for i in range(len(l)):
popped = l.pop()
reverse.append(popped)
return reverse
number= [1,2,3,4]
print(reversed_list(number))
ANSWER
[4, 3, 2, 1]
Reversed List
Post a Comment