lpython list append code example
Example 1: how to add an item to a list in python
myList = [1, 2, 3]
myList.append(4)
Example 2: python append to list
a = [1, 2, 3, 4, 5]
# Let's add 6 to the list called a
a.append(6)
myList = [1, 2, 3]
myList.append(4)
a = [1, 2, 3, 4, 5]
# Let's add 6 to the list called a
a.append(6)