Ir para conteúdo
Fórum Script Brasil

Wagner Thierry

Membros
  • Total de itens

    1
  • Registro em

  • Última visita

Sobre Wagner Thierry

Wagner Thierry's Achievements

0

Reputação

  1. Olá amigos estou aprendendo Python, tem menos de 2 meses que comecei, e estou fazendo uma atividade com os seguintes requerimentos (é um programa que funciona estilo o jogo chamado Wordle): Have a secret word stored in the program. Prompt the user for a guess. Continue looping as long as that guess is not correct. Calculate the number of guesses and display it at the end. Add a check to verify that the length of the guess is the same as the length of the secret word. If it is not, display a message. If they are the same, then proceed to give the hint. Make sure to account for the following in your hints: Letters that are not present at all in the secret word (underscore _). Letters that are present in the secret word, but in a different spot (lowercase). Letters that are present in the secret word at that exact spot spot (uppercase). Até o momento meu código está assim: Eu não sei como fazer a parte do programa dar dicas, como mostrar em lower.case se alguma letra da palavra chutada existe na palavra secreta; mostrar em upper.case se alguma letra da palavra chutada existe na palavra secreta e está no local exato onde deveria estar; E tambem mostrar uma mensagem de erro caso o usuario escolha uma palavra que tenha mais letras do que a palavra secreta. Se puderem me ajudar com isso ficarei muito grato !
×
×
  • Criar Novo...