title: NameError: name 'Class' is not defined
body: <p>When I compile I get this error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "c:/Users/dvdpd/Desktop/ProjectStage/Main.py", line 1, in &lt;module&gt;
      class Main:
    File "c:/Users/dvdpd/Desktop/ProjectStage/Main.py", line 6, in Main
      test = Reading()
  NameError: name 'Reading' is not defined
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>class Main:
      print("Welcome.\n\n")
      test = Reading()
      print(test.openFile)
  
  
  class Reading:
      def __init__(self):
          pass
  
      def openFile(self):
          f = open('c:/Users/dvdpd/Desktop/Example.txt')
          print(f.readline())
          f.close()
  </code></pre>
  
  <p>I can't use the class <code>Reading</code> and I don't know why.
  <code>Main</code> and <code>Reading</code> are in the same file so I think I don't need an <code>import</code>.</p>