The main problem with returning a status message is that it can be difficult to determine the correct response.
def some_function(): return "Hello, world!"
This is a function definition. The function is named “some_function”. The function takes no arguments and returns the string “Hello, world!”.
What is Return statement
The return statement in Python returns a value from a function.