9951 explained code solutions for 126 technologies


pythonHow to reverse a list


list = ['a', 'b', 'c', 'd']
reversed = list[::-1]ctrl + c
list

sample list to reverse

reversed

will contain reversed list

[::-1]

reverses list