APPEND (PYTHON3)
francnstein
Posted on April 22, 2020
The append() method in python adds a single item to the existing list. It doesn't return a new list of items but will modify the original list by adding the item to the end of the list. After executing the method append on the list the size of the list increases by one.
num = [100,200,300,400]
num.append(900)
print(num)
Example from Sololearn
FRANCNSTEIN © 2020 | Created 𝗐𝗂𝗍𝗁 ❤
💖 💪 🙅 🚩
francnstein
Posted on April 22, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.