Taking a Vacation-before we begin


#1

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


#2

to declare a function:

def functionName():

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


#4

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