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

1. In a compound, chemical energy is contained in the (1 point) a. nuclei of the atoms. b. unbonded electrons. c. bonds. d. movement of the electrons. 2. W
Every quadrilateral is a parallelogram true or false
write a real world problem using ratios or rates that could be represented in the coordinate plane
What is 3 1/3 divided by 1 7/8 in simplest form ?
40+55h=190 solve for h
Samantha has 29 songs downloaded to her new tablet. She wants to have a total of 100 songs on the tablet. How many more songs does she need to download? A. defi
Which of the following will lead to speciation? A. Variation in gene pool B. Lack of mutations C. Absence of natural selection
What is 3 2/5 minus 1 4/5?
Elsie would like to take a snowboarding lessons at powder mountain. She has saved $550 for lessons, semi-private lessons cost $45 per lesson and a junior season
Tell whether the given statement is true or false. Explain your choice. Question 1: all whole numbers are rational numbers