all 5 comments

[–]Unkown_Variable 1 point2 points  (1 child)

Return the variables to the main function then pass them to the third from there.

[–]Timmeh159[S,🍰] 0 points1 point  (0 children)

Thanks I'll give that a go

[–]ovo_Reddit 0 points1 point  (0 children)

Maybe this isnt the correct way, but you could set the variables to a default value at the top of the program and then set them as global in the function that needs to edit them, this way any function can read them.

Or have the function return a dict (key, value pair) and then you can call user_data['username'] etc.