For this assignment, you will be using IDLE to write Python code….

For this assignment, you will be using IDLE to write Python code…. For this assignment, you will be using IDLE to write Python code. The program you will be writing is based off your prior Performance Assessment in Week 1. Incorporate the following requirements into the modified version.Use a loop to allow for the program to be played by different players.Use a double indexed list to track the name of the players and their scores.At the end of a game round, list the players and their scores.Suggestions:You’ll need to use the random library function to generate the number of guesses.The main function should contain a loop that runs as long as the user answers “Y” or “Yes.”The main function should call a function named greetUser().The greetUser() function should ask for the user’s name.The main() function should call the randint() function and obtain a random number between 1 and 10. Store the return value of randint() in a variable.The main() function should call a gameRound() function, and pass it the value of the random number.The gameRound() function should contain a loop that asks the user for their guesses, and keeps track of the number of guesses until the user guesses correctly. The gameRound() function should return that value (the number of guesses) to main().You’ll need a list that is updated with the user’s name, and the number of tries that it took that user to guess correctly.At the end of the program, print the elements in the list to the screen formatted like the output below.Sample output of the Python code is provided below:  C:Windowspy.exe Please enter yourfirst name: Jack Hello Jack! Pleaseguess a number between … Show more… Show more CWindowspy.exe Please enter yourfirst name: Sophie Hello Sophie! Pleaseguess a number between … Show more… Computer Science Engineering & Technology Information Security CS 123

Leave a Comment

Your email address will not be published. Required fields are marked *

Order your essay today and save 30% with the discount code ESSAYHELP