DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
how to append a number to a list in python
l
=
[
1
,
2
,
4
,
5
]
new_item
=
6
l
.
append
(
6
)
print
(
l
)
PREVIOUS
NEXT
Tagged:
#append
#number
#list
#python
ADD COMMENT
Topic
COMMENT
Name
4+9 =
Submit