title: Why I can´t import a class in python?
body: <p>This is my folder structure: </p>
  
  <pre><code>├── Basic
  ├── Coche
  │   ├── __init.py__
  │   ├── coche.py
  ├── miPrimerCoche.py
  </code></pre>
  
  <p>I want to import the class "coche.py" in miPrimerCoche.
  In coche.py I have this: </p>
  
  <pre><code>class Coche:
  
      def __init__(self, marca, color, caballos):
          self.marca = marca
          self.color = color
          self.caballos = caballos
  
      def datos(self):
          return "Este coche es un: " + self.marca + \
             " de color: " + self.color + " y con: " + str(self.caballos)    + " caballos"
  </code></pre>
  
  <p>And, in miPrimerCoche I have this code: </p>
  
  <pre><code>from Coche import coche
  
  miMercedes = coche("Toyota", "verde", 50)
  print miMercedes.marca
  print miMercedes.datos()
  </code></pre>
  
  <p>Then, when I run miPrimerCoche, I get this error: </p>
  
  <pre><code>Traceback (most recent call last):
    File     "/Users/personalUser/PycharmProjects/untitled/Basic/importar_clase.py",    line 3, in &lt;module&gt;
      miMercedes = coche("Toyota", "verde", 50)
  TypeError: 'module' object is not callable
  </code></pre>
  
  <p>Basic is the src folder (it is in blue color), what I can do? </p>
  
  <p>I resolved with  </p>
  
  <pre><code>  miMercedes = coche.Coche(par1, par2, par3...)
  </code></pre>
  
  <p>but I don´t know if is the good way to do it. </p>