Answers for "python append many items to a list"

0

python append many items to a list

lst = [1,2,3]
lst.extend([4,5,6])
print(lst) # [1, 2, 3, 4, 5, 6]
Posted by: Guest on January-31-2022

Code answers related to "python append many items to a list"

Python Answers by Framework

Browse Popular Code Answers by Language