Learn practical skills, build real-world projects, and advance your career
Updated 3 years ago
file1_contents = file1.read()
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-2-31e6b22e8f27> in <module>
----> 1 file1_contents = file1.read()
NameError: name 'file1' is not defined
import os
os.getcwd()
'/home/jovyan'
os.list
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-4-b629f0e12a7e> in <module>
----> 1 os.list
AttributeError: module 'os' has no attribute 'list'
climate_data = np.array([[73, 67, 43],
[91, 88, 64],
[87, 134, 58],
[102, 43, 37],
[69, 96, 70]])
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-5-13fcc443aa19> in <module>
----> 1 climate_data = np.array([[73, 67, 43],
2 [91, 88, 64],
3 [87, 134, 58],
4 [102, 43, 37],
5 [69, 96, 70]])
NameError: name 'np' is not defined
import numpy as np