Run
#list of numbers mylist = [21, 5, 8, 52, 21, 87, 52] #reverse list using slicing mylist = mylist[::-1] #print the list print(mylist)
Output