Search
 
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
Name
6+3 =