Answers for "how to add new element in list in python"

0

how to add items in python list

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

thislist.append("orange")

print(thislist)
Posted by: Guest on October-04-2021
0

add an element to list python

a=[8,5,6,1,7]
a.append(9)
Posted by: Guest on May-31-2020

Code answers related to "how to add new element in list in python"

Python Answers by Framework

Browse Popular Code Answers by Language