python 3 add to array code example
Example 1: append item to array python
data = []
data.append("Item")
print(data)
Example 2: python array
array = ["1st", "2nd", "3rd"];
#prints: ['1st', '2nd', '3rd']
data = []
data.append("Item")
print(data)
array = ["1st", "2nd", "3rd"];
#prints: ['1st', '2nd', '3rd']