vector of int python code example
Example 1: initialize array of natural numbers python
a = array.array('i',(0 for i in range(0,10)))
Example 2: arrays python
array = [1, 2, 3, 4]
array.append(5)
for i in array:
print(i)
a = array.array('i',(0 for i in range(0,10)))
array = [1, 2, 3, 4]
array.append(5)
for i in array:
print(i)