index and reversing a sub list in python list

Solutions on MaxInterview for index and reversing a sub list in python list by the best coders in the world

showing results for - "index and reversing a sub list in python list"
Nolan
05 Nov 2016
1def reverse_sublist(lst,start,end):
2    lst[start:end] = lst[start:end][::-1]
3    return lst