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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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