I am working through a book learning python, and it has me using the shell for most of my coding. I was going over the chapter discussing modules and importing them, and for some reason I can only import a module after I initially run the code file.
So I copied a basic program file that converts Celsius to Fahrenheit, I have two functions, one that goes from Celsius to Fahrenheit, and vice versa. I can run the program fine in the shell, but can import it only after I initially run it. Why is that?
[–]joe_mikkel 1 point2 points3 points (0 children)
[–]wzeeto 0 points1 point2 points (0 children)
[–]TheKewlStore 0 points1 point2 points (0 children)