Answers for "add a list of elements to a list"

0

how to add an element in a list in python

thislist = ["apple", "banana", "cherry"]

thislist.insert(1, "orange")

print(thislist)
Posted by: Guest on May-06-2021

Code answers related to "add a list of elements to a list"

Python Answers by Framework

Browse Popular Code Answers by Language