DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
1+3 =
Submit