Page 1 of 1

Python: List Append

Posted: Tue Apr 07, 2026 5:10 pm
by 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']