WAP to enter the elements of a list and reverse these elements
Answers
Answered by
2
Answer:
# Reversing a list using reverse()
def Reverse(lst):
lst.reverse()
return lst
lst = [10, 11, 12, 13, 14, 15]
print(Reverse(lst))
Output:
[15, 14, 13, 12, 11, 10]
Similar questions