# welcome to softhunt.net
# Python program explaining
# numpy.require() function
# importing numpy
import numpy as np
# creating 3 x 3 array
data = np.arange(9).reshape(3, 3)
print(data)
print(data.flags)
# welcome to softhunt.net
import numpy as np
# Python program explaining
# numpy.require()
data = np.arange(9).reshape(3, 3)
b = np.require(data, dtype=np.float32,
requirements=['A', 'W', 'O', 'C'])
print(data)
print(b.flags)