"%s" + "if, return" problem


original=raw_input(“Enter a word:”)
if len(original)>0:
return:“actually idk how to say %s” % (original)
return: “empty”

somehow this part doesn’t work:
""“return:“actually idk how to say %s” % (original)”""

it says “SyntaxError: ‘return’ outside function”. why is this?


return can only be used inside a function, do you have a function? No. So can you use return?


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