Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

add to list in python

# there are different ways to append 
lst = [1,2,3]
# 1) using append
lst.append(4) 
# 2) using Extend
lst.extend([4,5,6,7])
Source by www.howtouselinux.com #
 
PREVIOUS NEXT
Tagged: #add #list #python
ADD COMMENT
Topic
Name
3+4 =