0
a=int(input("Digite o valor de A: "))
b=int(input("Digite o valor de B: "))
c=int(input("Digite o valor de C: "))
delta=float(((b**2)-4*a*c))
r1=float((-b +(delta ** (1/2))/2)
r2=float((-b -(delta ** (1/2))/2)
if delta > 0
print("Temos duas raizes reais e distintas. \nRaiz 1: {} \nRaiz 2:{}".format(r1,r2))
elif delta = 0
print("Temos duas raízes iguais. \nRaiz 1: {} \nRaiz 2: {}".format(r1,r2))
elif delta < 0
print("Raizes inexistentes.")
Error:
R2=float((-b -(delta ** (1/2))/2)
^
Syntaxerror: invalid syntax
What would be the mistake? he says it’s on line 6, which is R2, but I don’t see anything that interferes with the code.
Your parentheses are unbalanced.
– Pedro von Hertwig Batista