when you do a return from a function, it returns the value, not the names under which that function stored the values. when you return 2 values separated by a comma, you are returning a value which is a type known as a tuple, containing those 2 values. you do need to call the function and do it in a way that properly uses the value the function will return, such as assigning that value to a variable, or to multiple variables. you can also call a function and ignore the value it returns.
if you wish to have variables returned from a function, and have the code that called that function get the same names, it is possible to do. but it is more complicated, requiring changes to how the function returns them and how the caller accepts them. but, i suggest not ever thinking about something like that unless you have a specific reason to do it. in my few years of programming in python, i have never encountered such a need. i doubt if anyone here ever has, so i'm not going to explain how.
if you wish to have variables returned from a function, and have the code that called that function get the same names, it is possible to do. but it is more complicated, requiring changes to how the function returns them and how the caller accepts them. but, i suggest not ever thinking about something like that unless you have a specific reason to do it. in my few years of programming in python, i have never encountered such a need. i doubt if anyone here ever has, so i'm not going to explain how.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.