how to reverse a list using 1 python code example
Example 1: python reverse list
list.reverse()
Example 2: index and reversing a sub list in python list
def reverse_sublist(lst,start,end):
lst[start:end] = lst[start:end][::-1]
return lst