reverse a part of list in place python code example
Example: index and reversing a sub list in python list
def reverse_sublist(lst,start,end):
lst[start:end] = lst[start:end][::-1]
return lst
def reverse_sublist(lst,start,end):
lst[start:end] = lst[start:end][::-1]
return lst