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

which of these pronouns is third person plural possessive and why? 1. that 2. who 3. theirs 4. they
It would mean the world to me if you could do this
Did the bathyscaphe stay underwater long on it's first dive?
Astronomy and astrology were often practiced together in ancient cultures, and astrology played an important role in the historical development of astronomy. As
To measure the magnitude of the acceleration due to gravityg in an unorthodox manner, a studentplaces a ball bearing on the concave side of a flexible speakerco
Ocean Spray has faced limited competition in the market for fresh and frozen cranberries. What barrier has kept new firms from entering the market for fresh and
Imagine that you have to turn the clocks ahead for daylight saving time. You manage to recall the rather complex system by which you can advance the clock in yo
___________is the practice of ranking the test scores of minorities separately from non-minorities and of choosing high scores within each group, often with the
____ would describe an airplane as "Earthen metal infused with Air and propelled by elemental Fire" Select one: a. Einstein b. Galileo c. Aristotle d. Sir
Which two values of x are roots of the polynomial below? 4x^2 - 6x + 1