I'm having a difficult time grasping the concept of returning values in functions. Here is what I think I know. If you have a function like
def welcome_message(name):
print name
welcome_message(G.I.Josh)
It will store the value G.I.Josh in a variable called name. Now, if I added return G.I.Josh, what exactly would happen? Also, if I needed to get more then one variable from outside of the function into the function, how could I do that? And lastly. How can I keep variables I manipulate inside the function from going back to their orriginal value once the function is over? Thanks.