Question: Write a program called aniguess that: (15 points) a. In a comment on the first line gives your full name (first and last). b.
Write a program called aniguess that: (15 points) a. In a comment on the first line gives your full name (first and last). b. Creates a variable called atype equal to the value "dog". c. Asks the user to guess what type of animal the program is thinking of and assigns the user's input to the variable uguess. d. Includes an if-statement in which... (Hint: You should use both elif and else.) i. If the value of uguess is equal to the value of atype, congratulates the user on an excellent guess. ii. Otherwise, if the value of uguess is "meteor", tells the user that what they've guessed isn't an animal. iii. Otherwise, if the value of uguess has the same number of characters in it as the value of atype, congratulates the user on guessing something with the right number of letters. iv. Finally, if none of the above are true, tells the user (on one line, using placeholders) that the actual animal isn't [whatever they guessed], but, instead, it's [value of of atype].
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
