Python: List Append
Posted: Fri Sep 05, 2025 4:29 am
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']