my question here:Hi all. I have not received my book yet, so I am unable to go on.
1 2 3 4 5 6 7 8 9 10 11 12 |
#file2.py #module # Import built-in module math import math #the module is 'math' content = dir (math) print (content) y = cos(pi / 6 ) #NameError: 'cos' is not defined z = math.y print (z) |