Python won't import math module. It's fetching a file that isn't even there. What do I do?
<pre><code># quadratic.py
# A program that computes the real roots fo a quadratic equation.
# Illustrates the use of the math library
# Note: This program crashes if the equation has no real roots

import math # math makes the library available

def main():
    print "This program finds the real solutions to a quadratic"
    print

    a, b, c = input("Please enter the coefficients (a, b, c): ")
    discRoot = math.sqrt(b * b - 4 * a * c)
    root1 = (-b +discRoot) / (2 * a)
    root2 = (-b +discRoot) / (2 * a)

    print
    print "The solutions are: ", root1 , root2 

main()
</code></pre>

<p>Her's the error I'm getting:</p>

<blockquote>
  <p>Macintosh-7:python andrewmetersky$ python quadratic.py<br>
  The answer to my homework question: what is i+x+j =<br>
  Traceback (most recent call last):<br>
    File "quadratic.py", line 6, in <br>
      import math # math makes the library available<br>
    File "/Users/andrewmetersky/Desktop/Programming/Python/math.py", line 5, in <br>
  NameError: name 'jp' is not defined</p>
</blockquote>

<p>The problem is, math.py isn't even a file in that location.  It was, but I deleted it because i figured Python was trying to fetch that and not the math module.  There is a file called math.pyc in that location...is that the module? why won't it fetch that.</p>

<p>Thanks</p>

<p>PS- Also,  how do I make that section i just pasted appear as code w/in stack overflow without having to press space 4x for each line.</p>
