examples/numpy/array.py
from __future__  import print_function
import numpy

a = numpy.array([3, 4, 7])
print(a)         # [3, 4, 7]
print(a * 3)     # [ 9 12 21]
print(a + 4)     # [ 7  8 11]
print(a.dtype)   # int64
print(a.shape)   # (3,)

b = numpy.array([2, 3.14, -1])
print(b.dtype)   # float64
print(b.shape)   # (3,)