Q. Does a function always return a value? Explain with an example.


Answer :-

No, if we write print statement in place of return then the function will not return any value.
Example:-

def path(X):
      print (X)

Here path() function will not return anything it will print X.

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post