Why the colon in '(1,1,2)'?<br><br><div class="gmail_quote">On Mon Nov 17 2014 at 1:41:10 AM ryguy7272 <<a href="mailto:ryanshuell@gmail.com">ryanshuell@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">When I type 'import math', it seems like my Python recognizes this library.  Great.  When I try to run the following script, I get an error, which suggests (to me) the math library is not working correctly.<br>
<br>
Script:<br>
import math<br>
def main():<br>
        print "This program finds the real solutions to a quadratic"<br>
        print<br>
        a, b, c = input("Please enter the coefficients (a, b, c): ")<br>
        discRoot = math.sqrt(b * b - 4 * a * c)<br>
        root1 = (-b + discRoot) / (2 * a)<br>
        root2 = (-b - discRoot) / (2 * a)<br>
        print<br>
        print "The solutions are:", root1, root2<br>
main()<br>
<br>
Error:<br>
Traceback (most recent call last):<br>
  File "C:\Users\Ryan\Desktop\<u></u>QuadraticEquation.py", line 11, in <module><br>
    main()<br>
  File "C:\Users\Ryan\Desktop\<u></u>QuadraticEquation.py", line 5, in main<br>
    a, b, c = input("Please enter the coefficients (a, b, c): ")<br>
  File "<string>", line 1<br>
    (1,1,2):<br>
           ^<br>
SyntaxError: unexpected EOF while parsing<br>
<br>
The last line is line 11.  It seems like I need this, but that's what's causing the error.  Does anyone here have any idea what is wrong here?<br>
<br>
Thanks.<br>
--<br>
<a href="https://mail.python.org/mailman/listinfo/python-list" target="_blank">https://mail.python.org/<u></u>mailman/listinfo/python-list</a><br>
</blockquote></div>