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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay