# tictactoe.py

import random

def drawBoard(board):
    """
    This function prints out the board that it was passed.
    """

    # "board" is a list of 10 strings representing the board (ignore index 0)
    print('   |   |')
    print(' ' + board[7] + ' | ' + board[8] + ' | ' + board[9])
    print('   |   |')
    print('-----------')
    print('   |   |')
    print(' ' + board[4] + ' | ' + board[5] + ' | ' + board[6])
    print('   |   |')
    print('-----------')
    print('   |   |')
    print(' ' + board[1] + ' | ' + board[2] + ' | ' + board[3])
    print('   |   |')

@@ -554,28 +554,566 @@
 d%5B3%5D)%0A    print('   %7C   %7C')%0A
+%0Adef inputPlayerLetter():%0A    %22%22%22%0A    Allows the player to choose what letter they want to be.%0A    Returns a list with the player's letter as the first item, and the%0A    computer's letter as the second.%0A    %22%22%22%0A    letter = ''%0A    while not (letter == 'X' or letter =='O'):%0A        print('Do you want to be X or O?')%0A        letter = input().upper()%0A%0A    # The first element in the list is the player's letter, the second is the%0A    # computer's letter.%0A    if letter == 'X':%0A        return %5B'X', 'O'%5D%0A    else%0A        return %5B'O', 'X'%5D%0A%0A

Add inputPlayerLetter method to tictactoe.py module.