Jan-25-2018, 07:12 PM
return is a statement that is used in functions. You need to return something from a function if you want to assign that result to another variable, as you've just learned. There is plenty of resources, here is the official Python docs on functions ;)