The keyword return
has the useful effect of stopping a function before it continues for the rest of its code, but that’s not all it can do! You also use return
to have your function give back an output.
You can use this to make functions that calculate things for you and send back an answer, for example.