Answers for "how to add multiple items in list python"

1

how to add multiple items in list python

Mylist = [1, 2, 3]

#Appends multiple items using a list
Mylist += [4, 5]

#Mylist should be [1, 2, 3, 4, 5]
Posted by: Guest on September-14-2021

Code answers related to "how to add multiple items in list python"

Python Answers by Framework

Browse Popular Code Answers by Language