Use append () when adding an element to the end Source
append.py
fruitList = ['Apple', 'Orange', 'Pear'] print(fruitList) #['Apple', 'Orange', 'Pear'] fruitList.append('Grapes') print(fruitList) #['Apple', 'Orange', 'Pear', 'Grapes']
Recommended Posts