I read similar threads with my error and could not find the solution. In most other threads it seemed that people were inputting data incorrectly, but as you can see I am inputting the values with the correct typology. I can't seem to find what else I could be missing. Any ideas?
def main():
a, b, c, d, e, f = float(input("Enter a, b, c, d, e, f: "))
x = ((e * d) - (b * f))/ (
(a * d) - (b * c) )
y = ((a * f) - (e * c)) / (
(a * d) - (b * c) )
print("x is %f and y is %f" % (x,y))
if __name__ == "__main__":
main()
Error message:
>>>Enter a, b, c, d, e, f: 9.0, 4.0, 3.0, -5.0, -6.0, -21.0
ValueError: could not convert string to float: '9.0, 4.0, 3.0, -5.0, -6.0, -21.0'