We can access each element of an array using the index of the element. The below code shows how to access an array element.
from array import *
vincent = array('i',[30,40,50,60,70,80,70,100])
print(vincent[1])
print(vincent[2])
print(vincent[4])
output:
40
50
70
Top comments (0)