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

homas is planning to start his own business in 10 years, at which time he will buy all the equipment and land needed. Currently Thomas is planning to budget dep
In some democratic nations, citizens use a system of elections where if no one candidate gets more than 50 percent of the votes, everyone is eliminated except f
Find the equation of a line glven the point and slope below. Arrange your answer in the form y = mx + b, where b is theconstant(10, 11)m =9​
what is the answer for this fraction 6x1/3
The revolution in Haiti grew mainly out of the ideals of which of the following ?
y=3x-5\6x+3y=15 solve for x hurry
What is the length of the unknown leg in the right triangle? A triangle with side 21 centimeters, hypotenuse 29 centimeters, and side a.
Describe what happens when two plates made of oceanic crust collide
Suppose that a perfectly competitive industry is in long-run equilibrium. Every firm is producing at minimum average total cost, and all firms are identical. De
Combining source types is the best way to find information about your topic. true or false