Im really new to Python and I just learnt about Quadratic equations in maths, and so i made it made it my project to make a quadratic solver.
But i have a problem i have a line if tocontinue == n:
I try to run it in IDLE and i get a popup saying Syntax Error! and it highlights the : at the end... before it also highlighted the = but I made it == and now it doesn't
here is the entire code
global running, y, n, N, Y
running = True
y=y
n=n
Y=y
N=n
def quadratic():
global a, b, c, x, y
a = int(input('Enter an A : '))
b = int(input('Enter an B : '))
c = int(input('Enter an C : '))
x = (-b+(b**2-4*a*c)**.5)/(2*a)
z = (-b-(b**2-4*a*c)**.5)/(2*a)
def answer():
print(x, 'is positive.')
print(z, 'is negative.')
Fraction('x \t\n')
Fraction('z \t\n')
print(fractions.Fraction(x), 'is fraction from + in +/-.')
print(fractions.Fraction((-b-(b**2-4*a*c)**.5)/(2*a)), ' is fraction from - in +/-.')
def intro2():
global tocontinue, y, n, N, Y
tocontinue = int(input('Again? (y/n))')
if tocontinue == n:
running = False
else;
running = True
def intro():
global running, intro3, y, Y
while running:
quadratic()
answer()
intro2()
Im not sure whats really wrong with it? any help much appreciated and also are there any begineers guides for python, its my first programing language I am learning :)
ive read a Byte of Python but i need MOAR!
thanks in advance