Skip to content Skip to sidebar Skip to footer

What Is The Return Function Used For?

I've used the return function in my code before as I am learning python, but I'm not sure what it does. I've looked it up, but I'm not really sure what it actually does. Can anyone

Solution 1:

The return keyword is to exit a function and return a value.

To let a function return a value, use the return statement

Post a Comment for "What Is The Return Function Used For?"