Hello! I was just wondering about the return keyword when you use a function in python.
I understand that when you return a value in a function, that value can be saved as a variable. However, can variables be defined only by the values from a return statement?
For example, lets say I have this funciton:
could I save the test_word as a variable? This is very basic and I’m new at Python so I may have the incorrect syntax, or not know about something I will learn down the road! But I would like to know if values in a functions return statement are the only things in a function that can be stored in a variable! Thanks.