Yes, I\'ve read tons of examples on this but I still don\'t get it.
I\'m learning Python and I made this script in order to help me understand how to \'return\':
I'm not a python programmers, but this looks like a problem of scope. You did define the variable "random" but it's scope-- the section of the code where it is visible and usable-- is limited to the function where you define it. In this case, inside the random_number() function.
It is not visible inside the calc_pay_rise() function.
What is visible is the other function, random_number() itself.
That is what you need to use in your addition.
That is the basic point of returning values.