I was learning a little about Python when I was 13 but now I prefer C++. Well, they both have the return value for the same thing.
The return value of a function gives you what you need after running this function. Here is an example:
def getAdditionOfTwoAddends(firstAddend, secondAddend):
result = firstAddend + secondAddend
This is a function that calculates the addition result of two addends. You can see the "result" is the final result of the addition, and it is been returned. The returned number is the value that the function getAdditionOfTwoAddens(number, number) has, so you can use it this way:
additionResult = getAdditionOfTwoAddends(3, 6)
The "result" returned by the function goes to the "additionResult". You'll could use it for other things.
You may ask me: - Why I can't put the print in the function and do not return anything? Because this way you'll can use it for more thing and not just to print it.
x = getAdditionOfTwoAddends(3, 6)
y = getAdditionOfTwoAddends(7, 9)
print (x * y)
This way you can use it however you want without printing anything. And also the result of x and y are saved.
Anything ununderstandable reply me :)
I came here was to ask a question XD but saw your question haha