Alright, this is how my newest program looks like:
import math
def main():
print('This program finds the real solutions to a quadratic')
print
s = float(input('Please enter the coefficients (a,b,c): '))
a, b, c = s.split(',')
discRoot = float(math.sqrt(b * b - 4 * a * c))
root1 = (-b + discRoot) / (2*a)
root2 = (-b - discRoot) / (2*a)
print
print('The solutions are:', root1, ('and'), root2)
main()
and i get this error msg:
in main
in main
s = float(input('Please enter the coefficients (a,b,c): '))
ValueError: invalid literal for float(): 2, 3, -2
Help ._.