Answers for "reverse whole list"

1

how to reverse a list in python

# reversing a list in Python
numbers = [1,2,3,4,5,6,7,8,9]
print(numbers[::-1])
Posted by: Guest on March-04-2021

Python Answers by Framework

Browse Popular Code Answers by Language