DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
list reverse method in python
l1 = [1, 8, 7, 2, 21, 15] l1.reverse() # reverses the list print(l1) #it will reverse the list
Source by dbader.org #
PREVIOUS
NEXT
Tagged:
#list
#reverse
#method
#python
ADD COMMENT
Topic
COMMENT
Name
4+7 =
Submit