How to pull a variable from one function to another
<pre><code>    def letterChoice():
        playerLetter = input('Please choose X or O.').upper()
        if playerLetter in ['X','O']:
          print('The game will now begin.')
        while playerLetter not in ['X','O']:
          playerLetter = input('Choose X or O.').upper()
        if playerLetter == 'X':
          computerLetter = 'O'
        else:
          computerLetter = 'X'
        turnChooser()
    def turnChooser():
        choice = input("Would you like to go first, second or decide by coin toss?(enter 1, 2 or c) ")
        while choice not in ["1","2","c"]:
          choice = input("Please enter 1, 2 or c. ")
        if choice == 1:
          print("G")
          cur_turn = letterChoice.playerLetter()
        elif choice == 2:
          print("H")
        else:
          print("P")
        moveTaker()
</code></pre>

<p>I can't figure out how I'm supposed to inherit playerLetter into turnChooser(), I've tried putting playerLetter into the brackets of each function but they don't pass and create an argument error and the <code>print("G")</code> and so on are simply there to see if the code works but whenever I enter 1 or 2 "P" is outputted.</p>