Write a program to reverse a list


Topic: Write a program to reverse a list

Solution

lst = [11, 5, 17, 18, 23]
def reverse(lst): 
    new_lst = lst[::-1] 
    return new_lst
	



List all Python Programs