Page 1 of 1

Python: List Append

Posted: Fri Sep 05, 2025 4:29 am
by The Jason

Code: Select all

list_of_some_colors = list(("blue", "red", "green"))

list_of_some_colors.append("purple")

print(list_of_some_colors)

# Will display ['blue', 'red', 'green', 'purple']