import numpy as np
def main():
a = np.array([1, 2, 3])
b = np.array([2, 3, 4])
print(f"size of {a} = {a.size}")
print(f"ndim of {a} = {a.ndim}")
print(f"shape of {a} = {a.shape}")
print(f"type of {a} is {type(a)}")
print(f"dtype of {a} is {a.dtype}")
# algebraic operations on numpy array
c = a + b
print(f"{a} + {b} = {c}")
d = 2 * a
print(f"2 * {a} = {d}")
e = np.dot(a, b)
print(f"{a} dot {b} = {e}")
if __name__ == "__main__":
main()