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

What is your mass in kilograms if you weigh 120 pounds
useful frictions and unhelpful frictions
How do you decide whether an observed property of matter is a physical or a chemical property?
What reactions are involved in making plastic bags and what are the molecules that make up a plastic bag like?
LACECHMI CEIECTLR IRITONCF AREOGLHMET LCRNEAU ROASL what are those unscrambled. They are all types of heat-creating energy.
useful frictions and unhelpful frictions
what type of reaction provide energy within a red giant star? and how come?
Tell whether the graphs of the two equations are parallel lines... (24) y = 8x-3 , 8x + y =3 (25) 2x + y = 5 , -6 + 2x = y (26) 2x + y = 5 , y = 0.5x - 3 (27) y
Which sentence best describes the passage? Pick one of the bold sentences. Friction is a force that opposes the motion of an object. Friction occurs when a sol
Lucy practices jai alai four hours a day. is this a simple sentence, a compound sentence, a sentence fragment, or a run-on sentence?