Getting an error as 'return' outside function

hello mam,
can u plz tell me why am i getting return outside function error while trying function programs.


The “SyntaxError: ‘return’ outside function” error is raised when you specify a return statement outside of a function. To solve this error, make sure all of your return statements are properly indented and appear inside a function instead of after a function.

If your issue is still there paste a screenshot here so I can give you a much more detailed explanation.

1 Like