I’m stuck. I created a file ‘temperature.py.’ Instructions say to save this file anywhere I like, so I saved it in a Dropbox subfolder: C:\Users\username\Dropbox\PythonCode
Congratulations—you have created a module called temperature. Now that you’ve created this file, you can run it and import it like any other module:
>>> import temperature >>> celsius = temperature.convert_to_celsius(33.3) >>> temperature.above_freezing(celsius) True
Here is what happens for me:
>>> import temperature Traceback (most recent call last): File “<pyshell#0>”, line 1, in import temperature ImportError: No module named 'temperature'
I don’t know where I have gone wrong. Any help appreciated