0

Am declaring a function in python, but when am printing it it is throwing an error. I am new to python, am using python 3.5.2, below is my code, please guide me.

def myfunc(x):
    y=x*2
    x=27
    return y

print myfunc(5)

Error message is: print myfunc(5) ^ SyntaxError: invalid syntax

Thanks & regards, Sanjay.

cs95
  • 379,657
  • 97
  • 704
  • 746
K. Sanjay
  • 125
  • 1
  • 11

0 Answers0