"%s" + "if, return" problem


#1

original=raw_input(“Enter a word:”)
if len(original)>0:
return:“actually idk how to say %s” % (original)
else:
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?


#2

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


#3

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