In [ ]:
import array as arr
a = arr.array('d', [1.1, 3.5, 4.5])
print(a)
In [ ]:
a[1]
In [ ]:
a[1] = 4.0
a
In [ ]:
a[1:2]
In [ ]:
a.append(5.0)
a
In [ ]:
a.extend([5.0, 6.0, 7.0])
a
In [ ]:
a += arr.array('d', [1.1, 4.0, 4.5])
a
In [ ]:
# By value
a.remove(4.0)
a
In [ ]:
# By index
a.pop(3)
a