206k views
1 vote
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...)

User ChaimD
by
4.2k points

1 Answer

3 votes

Answer:

Step-by-step explanation:

a = input("what kind of pet the user has")

if a == 'cat':

print("Too bad")

elif a == 'dog':

print("Lucky you!")

User Justin Gallagher
by
4.1k points