DEV Community

Cover image for APPEND (PYTHON3)
francnstein
francnstein

Posted on

APPEND (PYTHON3)

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 𝗐𝗂𝗍𝗁 ❤

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more