index and reversing a sub list in python list 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