title: Cant run code from imported file
body: <p>How can I run a function I have created in another file? I know there are many questions asking this but my code is so simple I dont get how it doesn't work.</p>
  
  <p>In one file called Testfile I have</p>
  
  <pre><code>def greeting():
      print("Hello")
  </code></pre>
  
  <p>and in the other I have </p>
  
  <pre><code>import Testfile
  
  greeting()
  </code></pre>
  
  <p>but when I run the code I get the error 
  "name 'greeting' is not defined"</p>