Task1.ipynb - Colaboratory
Task1.ipynb - Colaboratory
import numpy as np
[[41 63 43 30]
[61 67 11 85]
[36 54 3 24]]
mean_value = np.mean(random_array)
median_value = np.median(random_array)
std_deviation = np.std(random_array)
print("Mean:", mean_value)
print("Median:", median_value)
print("Standard Deviation:", std_deviation)
[[41 63 43 30 61 67]
[11 85 36 54 3 24]]
maximum_value = np.max(reshaped_array)
minimum_value = np.min(reshaped_array)
Maximum value: 85
Minimum value: 3
reshaped_array[reshaped_array % 2 == 0] = -1
print(reshaped_array)
[[41 63 43 -1 61 67]
[11 85 -1 -1 3 -1]]
https://colab.research.google.com/drive/1G4lv-8IaHR55YuURDsvPaf1Ii6Dif5yf#printMode=true 1/1