| Data Type | Code |
| Integer | ‘i’ |
| Float | ‘f’ |
| Double | ‘d’ |
| Unicode | ‘u’ |
Using a for loop, you can easily iterate over all elements in an array and print them:
from array import *
arr = array(‘i’, [10, 20, 30])
for x in arr:
print(x, end=’ ‘)
Output:
10 20 30
Python provides two methods to delete elements from an array: