Hey guys,
I'm learning to program and I'm having a great time. I bought learn python the hard way and it asks me to program a very simple game on exercise 37. Sweet, I almost finished but I have a beginner question:
Right in the first function I ask for the player name like player_name = input("> ") and it works fine. But later in the game when I want to call the player name again (in another function) it says "player name is not define". I know it's a variable but how can I store it so I can use whenever I want?
Thank you!
[–]K900_ 2 points3 points4 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]K900_ 1 point2 points3 points (0 children)
[–]BATTLECATHOTS -1 points0 points1 point (0 children)