text_plain_output_1.png
import numpy as np

import numpy as np

import time

import time
import numpy as np
x = np.random.random(100000000)
start = time.time()
sum(x) / len(x)
start = time.time()
np.mean(x)

a = np.array([1, 2, 3, 4, 5])

b = np.array([[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12]])

c = np.array(['Hello', 'World'])

d = np.array([1, 2, 3, 'Hello'])

e = np.array([1, 2.3, 5])

f = np.array([1, 2.3, 4], dtype=np.int64)

x = np.array([1, 2, 3, 4, 5])
np.save('my_array', x)

y = np.load('my_array.npy')

X = np.zeros((3, 4))
print(X)