masteric4223 masteric4223
  • 01-12-2021
  • Computers and Technology
contestada

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

the unit for energy is the
8 = 3(3x + 8) − x whats x and explenation :)
what are the coordinates of the vertex for f(x) =3x^2+6x+3
What role did the invasion of William the Conqueror play in the development of a national identity for England? A.) The British army defeated William the Conque
What is the value of w? A.) 7 B.) 3.5 C.) 7 square root of 3 D.) 14
And an experiment which variable changes in response to the manipulation of another variable
what five states have the largest spanish-speaking population
How many chromosomes does an individual with Turner syndrome have
Qual é a radical,vogal tematica e desidencia do verbo VER
The figure shows the graphs of three functions. One is the position function of a car, one is the velocity of the car, one is its acceleration, and one is its t