title: Value not defined when inside a function
body: <p>When I attempt to print a value I get an error stating that the value is not defined.</p>
  
  <pre><code>def myFunc():
      myValue = "Hello World!"
  
  
  myFunc()
  print(myValue)
  </code></pre>
  
  <p>I was expecting myValue to be printing "Hello World!" however this is not the case.</p>