def multiPlayer():
        '''Returns dictionary of players for multiplayer gameplay.'''

        symbols = ['X','O']
        players = {}

        for identity in ['play1','play2']:
            
            if identity == 'play1':
                title = 'Player 1'
            else:
                title = 'Player 2'

            newPlayer = player(identity)
            print(title,end=' ')
            nameEntry = str(input('please enter your name: '))
            while newPlayer.setName(nameEntry):
                print('Invalid Entry!')
                print(title,end=' ')
                nameEntry = str(input('please enter your name: '))
            if identity == 'play1':
                symbolEntry = str(input('O or X: '))
                while newPlayer.setSymbol(symbolEntry):
                    print('Invalid Entry!')
                    symbolEntry = str(input('O or X: '))
                symbols.remove(symbolEntry.upper())
            else:
                newPlayer.setSymbol(symbols[0])
            players[identity] = newPlayer

        return players
Returns dictionary of players for multiplayer gameplay.
recipes/Python/580723_TicTacToe_text_based/recipe-580723.py