Answers for "reverese a list"

1

how to reverse a list in python

lst = [1, 2, 3]
reversed_lst = reversed(lst)
Posted by: Guest on May-31-2021

Python Answers by Framework

Browse Popular Code Answers by Language