I'm very new to coding and I don't know how everything works in Python. I know this code isn't write but I need to know how to do these things.
#Write a program that prompts the user to enter six points and use Cramer's rule to solve 2x2 linear equations.
a, b, c, d, e, f = float(input("Enter a, b, c, d, e, f: "))
if a*d-b*c==0:
print("The equation has no solution.")
else:
x= ((e*d-b*f) / (a*d-b*c))
y= ((a*f-e*c) / (a*d-b*c))
print("X is: " , x , "and Y is: " , y)