Question: write python code You have 3 children. Which pet should you buy for your child, giventhe input of a child and a shelter to adopt
write python code
You have children. Which pet should you buy for your child, giventhe input of a child and a shelter to adopt from?
Rules:
Tommy likes hamsters
Janie likes cats
Emily likes dogs.
Are you buying from a rescue org?
Rule:
Rescue orgs only adopt out cats or dogs not hamsters
From this we can see we will need a variable for child, and a variable for rescue org
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
