usr bin python from math import input input input b-4 if print You are

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
#!/usr/bin/python
from math import *
a = input ("a:")
b = input ("b:")
c = input ("c:")
d=b*b-4*a*c
if d < 0:
print "You are stupid! D<0!"
else:
d=sqrt(d)
x1=(-b+d)/2/a
x2=(-b-d)/2/a
if x1==x2:
print "x=%s" %x
else:
print "x1=%s" %x1
print "x2=%s" %x2