1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Python] Python Guessing Game for List of Colors from User [closed]

Discussão em 'Python' iniciado por Stack, Setembro 12, 2024.

  1. Stack

    Stack Membro Participativo

    Write an application in python which will prompt the user to guess a color from a list of colors provided.

    The user will win the game if the color selected matches the color selected at random by the computer. If the user enters a correct guess, the application should output a congratulations message to the screen. If the guess is incorrect, the application should output to the screen that the user lost and did not guess the correct color.

    After the game runs, it will ask the user if they would like to play again. If the user answers with "y" then the game will start over.

    The game will run until the user answers "n" to the 'play again' question.

    The colors and guesses from the user are not case-sensitive. If the user enters a word or color that is not on the list, the application will give an error and ask the user to try guessing again.

    The colors to be guessed by the user and the computer must be one of:

    Red, Orange, Blue, Violet, Brown, Pink, Aqua, Green, Silver, Gold, Yellow, White, Black

    Continue reading...

Compartilhe esta Página