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

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -