title: How do I import a class from a file in python?
body: <p>So hello again. I noticed I have not been asking the best python questions, but pray, bear with me. I have been working with classes to adopt the OOP method, even though I like it <strong><em>not</em></strong>. So now I am trying to import a class from a file in the same directory as my main file, but it just gives me a ModuleNotFoundError (hate how long this name is). 
  So here is the code from the main file:</p>
  
  <pre><code>import class_
  ahmed = class_.Name('Ahmed')
  ahmed.show()
  </code></pre>
  
  <p>And here is the code from the file I want to import:</p>
  
  <pre><code>class Name():
      def __init__(self, name):
          self.name = name
      def show(self):
          print(self.name)
  </code></pre>
  
  <p>I know I made some dum dum mistake over here, but what is it?</p>