hello mam,
can u plz tell me why am i getting return outside function error while trying function programs.
2 Likes
@sarithabhise27
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