New course! Every coder should learn Generative AI!
Try a free lesson+ 1
items = ["apple", "banana"]
# add a item to the end of the list
items.append("orange")
# replace the first item with mango
items[0] = "mango"
now the item list should look like this:
["mango", "banana", "orange"]
Hope you understand😊