Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python List append()

How to append a list into an existing list
# Programming list
programming_list = ['C','C#','Python','Java']

frontend_programming =['CSS','HTML','JavaScript']

# append the frontend_progamming list into the existing list
programming_list.append(frontend_programming)

# Note that entire list is appended as a single element
print('The new appended list is :', programming_list)
Source by itsmycode.com #
 
PREVIOUS NEXT
Tagged: #Python #List
ADD COMMENT
Topic
Name
9+2 =