Answers for "python, add element to list"

0

how to add element to python list

MyList = ["apple", "banana", "orange"]

MyList.append("raspberry")
# MyList is now [apple, banana, orange, raspberry]
Posted by: Guest on March-25-2021

Code answers related to "python, add element to list"

Python Answers by Framework

Browse Popular Code Answers by Language