python - Receiving unexpected syntax error in absolute value calculator -
code:
print ("welcome calculator") print ("calculators: absolute value [av]") load = int(input("enter calculator code here: ")) if load == av: import cmath import math avnum2 = int(input("enter number have it's absolute value found: ") **avsol** = cmath.fabs (avnum2) print ("the solution (absolute value) is: ", avsol)
there syntax error on avsol, , yes, imported cmath.
avnum2 = int(input("enter number have it's absolute value found: ") ^
you're missing closing )
on line.
Comments
Post a Comment