title: Splitting my code into multiple files in Python 3
body: <p>I wish to split my code into multiple files in Python 3.</p>
  
  <p>I have the following files:</p>
  
  <pre><code>/hello
      __init__.py
      first.py
      second.py
  </code></pre>
  
  <p>Where the contents of the above files are:</p>
  
  <p><strong><code>first.py</code></strong></p>
  
  <pre><code>from hello.second import say_hello
  
  say_hello()
  </code></pre>
  
  <p><strong><code>second.py</code></strong></p>
  
  <pre><code>def say_hello():
      print("Hello World!")
  </code></pre>
  
  <p>But when I run:</p>
  
  <pre><code>python3 first.py
  </code></pre>
  
  <p>while in the <code>hello</code> directory I get the following error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "first.py", line 1, in &lt;module&gt;
      from hello.second import say_hello
  ImportError: No module named 'hello'
  </code></pre>