Simple RPG question
I want to make a simple RPG that doesn't use classes since I'm not that far. I want this sort of layout... Def player_creator(): Things that make the player like health and attack points Return [values from function that are in list form NOT tuples] Def battle(player_info): Things happen and player loses health and let's say earns XP Return [new and updated player info in list] Main loop(): Playerstats = (values from player creator and then when needed stats from the battle) .... What I'm trying to ask is, is there a way to create values in one function, return them to a variable in the main loop, have a function take that variable as a parameter and then update the original list or even make a new one?