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

mod rewrite - Using "?" when rewriting the URL -

.htaccess: Transfer name to index.php if not directory public -

Admob integration with pygame in android -