the inputplayerletter(function asks if the player wants to be or it will keep asking the player until the player types in an or line automatically changes the string returned by the call to input(to uppercase letters with the upper(string method the while loop' condition contains parentheseswhich means the expression inside the parentheses is evaluated first if the letter variable was set to ' 'the expression would evaluate like thisnot (letter ='xor letter =' ' not (' ='xor ' =' ' not true or falsev not (truev not true false if letter has the value 'xor ' 'then the loop' condition is false and lets the program execution continue past the while-block the first element in the list is the player' letterthe second is the computer' letter if letter =' ' return [' '' ' else return [' '' 'this function returns list with two items the first item (the string at index is the player' letterand the second item (the string at index is the computer' letter these if-else statements chooses the appropriate list to return deciding who goes first def whogoesfirst() randomly choose the player who goes first if random randint( = return 'computer else return 'player