Write a program to reverse the list elemnets


Topic: Write a program to reverse the list elemnets

Solution

list_ = [40,0,1,29,3]
rev_list = list_[::-1]
print(f'reversed list: {rev_list}')



List all Python Programs