Jan-03-2018, 10:42 PM
I installed modul numpy and wrote this code:
I receive message "Attribute error: modul 'numpy' has no attribute 'array'
Don't see how is this possible.
1 2 3 4 5 6 7 8 9 |
import numpy as np height = [ 1.73 , 1.68 , 1.71 , 1.89 , 1.79 ] weight = [ 65.4 , 59.2 , 63.6 , 88.4 , 68.7 ] np_height = np.array(height) np_weight = np.array(weight) result = np_weigh / np_height * * 2 print (result) |
Don't see how is this possible.