How to add list to existing list Python

1 Answer

0 votes
lst = ["python", "c", "c++"]

lst.extend(["c#", "java", "php", "nodejs"])

print(lst)

 
 
 
'''
run:
 
['python', 'c', 'c++', 'c#', 'java', 'php', 'nodejs']

'''

 



answered Aug 9, 2022 by avibootz
...