import numpy as np

#ex1
# a = np.array([[1,2,3],[4,5,6]])
# print(a.shape)

#ex2
# a = np.array([[1,2,3],[4,5,6]])
# a.shape = (3,2)
# print(a)

#ex3
# a = np.array([[1,2,3],[4,5,6]])
# b = a.reshape(3,2)
# print(b)

#ex4
# an array of evenly spaced numbers
# a = np.arange(24)
# print(a)

#ex5
# a = np.arange(24)
# print(a.ndim)
# # now reshape it
# b = a.reshape(2,4,3)
# print(b)
# # b is having three dimensions
# print(b.ndim)

#ex6
# x = np.array([1,2,3,4,5], dtype = np.float32)
# print(x.itemsize)
#ex7
x = np.array([1,2,3,4,5])
print(x.flags)
