DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python list Using the append() method to append an item
thislist
=
[
"apple"
,
"banana"
,
"cherry"
]
thislist
.
append
(
"orange"
)
print
(
thislist
)
Source by www.programiz.com #
PREVIOUS
NEXT
Tagged:
#python
#list
#Using
#method
#append
#item
ADD COMMENT
Topic
COMMENT
Name
9+7 =
Submit