+ 2

Could anybody tell me wheres wrong,im a noob

a=1 b=2 c=3 x1=int( -b + (((b**2) - (4*a*c)}**(1/2))) x11=(x1)/(2*a) print( x11 )

9th Dec 2016, 1:06 PM
Ray _c
Ray _c - avatar
3 Respostas
+ 5
a=1 b=2 c=3 x1=int(-b + ((b**2) - (4*a*c)**(1/2))) x11= x1/(2*a) print(x11) In your code you messed up with braces, Curely base was and an extra opening brace
9th Dec 2016, 7:50 PM
Waqas Asghar Bhalli
Waqas Asghar Bhalli - avatar
+ 3
reread your own code before posting. you have a rogue curly brace in the equation.
9th Dec 2016, 2:04 PM
asdadasdsaczxc
+ 3
If your IDE doesn't automatically catch the syntax error, just count the number of each type of brace per line. If there are an odd number of braces then you are missing one somewhere.
13th Dec 2016, 7:00 PM
Nick Bowling
Nick Bowling - avatar