Taking a Vacation-before we begin


can anyone help me with this

def (answer):
return (42)
it keeps coming up with this
File "python", line 1
def (answer):
SyntaxError: invalid syntax


to declare a function:

def functionName():

you can't put the function name between parentheses, given that is for possible function parameters


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.