how to create a array python code example
Example 1: python array
array = ["1st", "2nd", "3rd"];
#prints: ['1st', '2nd', '3rd']
Example 2: arrays python
array = [1, 2, 3, 4]
array.append(5)
for i in array:
print(i)
array = ["1st", "2nd", "3rd"];
#prints: ['1st', '2nd', '3rd']
array = [1, 2, 3, 4]
array.append(5)
for i in array:
print(i)