how to reverese list code example
Example 1: python how to invert an array
revArray = array[::-1]
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