idkijustneedanswers9
idkijustneedanswers9 idkijustneedanswers9
  • 10-12-2021
  • Computers and Technology
contestada

PLEASE ANSWER (CODING IN PYTHON)


Ask what kind of pet the user has. If they enter cat, print “Too bad...”, if they enter

dog, print “Lucky you!" (You can change the messages if you like). Once this works,

add other pets. (Iguana, Pig, Rabbit...)

Respuesta :

giabao12 giabao12
  • 10-12-2021

Answer:

Explanation:

a = input("what kind of pet the user has")

if a == 'cat':

  print("Too bad")

elif a == 'dog':

   print("Lucky you!")

Answer Link

Otras preguntas

Find the value of the combination 13 c 5
I’m not sure this I’m so confused in algebra
I’m not sure this I’m so confused in algebra
quick question. the roman number than appears after ionic compounds with transition metals, do they represent the number of atoms or its charge?
match each exercise to its corresponding muscle or muscle group a sitting leg curls b bench press c machine curls d shrugs 1 hamstring 2 pectorals 3 biceps 4
one month charlie rented 2 movies 3 video games for a total of $21. The next month he rented 4 movies and 8 video games for a total of $53. Find the rental cost
McCarthyism of the early 1950s resulted in
Which of the binomials below is a factor of this trinomial? x2 – 4x – 12 A. x – 6 B. x – 4 C. x – 2 D. x – 3
Explain two main reasons for the allies victory over the axis powers of Europe
To accept something as true because a blog said so is to commit which kind of fallacy? ad hominem appeal to popular belief or practice appeal to inadequate auth