Question: Creates a variable called guessme equal to the value bird . Asks the user to guess what type of animal the program is thinking of
Creates a variable called guessme equal to the value bird
Asks the user to guess what type of animal the program is thinking of and assigns the users input to the variable userguess.
Includes an ifstatement in which... Hint: You should use both elif and else.
If the value of userguess is equal to the value of guessme, congratulates the user on an excellent guess.
Otherwise, if the value of userguess is car tells the user that what theyve guessed isnt an animal.
Otherwise, if the value of userguess is peace tells the user that, while the world needs more peace, they still have not guessed an animal.
Otherwise, if the value of userguess has the same number of characters in it as the value of guessme congratulates the user on guessing something with the right number of letters.
Finally, if none of the above are true, tells the user on one line, using an fstring that the actual animal isnt whatever they guessed but, instead, its value of guessme Creates a variable called guessme equal to the value bird
Asks the user to guess what type of animal the program is thinking of and assigns the users input to the variable userguess.
Includes an ifstatement in which... Hint: You should use both elif and else.
If the value of userguess is equal to the value of guessme, congratulates the user on an excellent guess.
Otherwise, if the value of userguess is car tells the user that what theyve guessed isnt an animal.
Otherwise, if the value of userguess is peace tells the user that, while the world needs more peace, they still have not guessed an animal.
Otherwise, if the value of userguess has the same number of characters in it as the value of guessme congratulates the user on guessing something with the right number of letters.
Finally, if none of the above are true, tells the user on one line, using an fstring that the actual animal isnt whatever they guessed but, instead, its value of guessme
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
