Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

index and reversing a sub list in python list

def reverse_sublist(lst,start,end):
    lst[start:end] = lst[start:end][::-1]
    return lst
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #index #reversing #list #python #list
ADD COMMENT
Topic
Name
1+3 =