![peytonhause20](/avatars/46957.jpg)
peytonhause20
20.12.2020 •
Computers and Technology
What am I doing wrong in my code?:
I will give branliest
Question1 = input("Do you like dogs or cats?")
if(Question1 == "dogs") :
print("There are many pros and cons of dogs. A pro is they are very cute")
if(Question1 == "cats"):
print("There are many pros and cons of cats. A pro is that they are giant fluff balls. A con is that they shed a lot")
Question2 = input("Insert the animal you would like to see a list of materials for")
if(Question2 == "dogs"):
print("A list of matreials needed: Food and water bowl for mealtime.
Collar and Id Tags for easy identification.
A comfy pillow for downtime.
Dog First Aid Kit just in case.
treats for all good doggies.
Leash or harness for active walking.
Dog toys for active playtime.")
if(Question2 == "cats"):
print("""Give your cat plenty of loving attention.
Catify your home with furniture that cats love.
Provide plenty of entertainment.
Offer safe outdoor access.
A nice place to scratch.
A nice view of the outside world.
Keep your litter box in the right place.
Keep their environment clean. """)
Solved
Show answers
More tips
- P Philosophy Personal attitude towards Confession: how to prepare and undergo the procedure correctly?...
- H Health and Medicine Flu: How to Recognize It by the First Symptoms?...
- F Food and Cooking How to Sober Up Quickly? Important Facts and Tips...
- H Health and Medicine How to Properly Take a Blood Sugar Test?...
- H Health and Medicine Simple and Effective: How to Get Rid of Cracked Heels...
- O Other How to Choose the Best Answer to Your Question on The Grand Question ?...
- L Leisure and Entertainment History of International Women s Day: When Did the Celebration of March 8th Begin?...
- S Style and Beauty Intimate Haircut: The Reasons, Popularity, and Risks...
- A Art and Culture When Will Eurovision 2011 Take Place?...
- S Style and Beauty How to Choose the Perfect Hair Straightener?...
Ответ:
What's the error in console? The only thing I can see is that you're mixing up JS with Python. "if" statements don't need parenthesis(unless you want to do something like if var(x): ) . So you would word question one like this:
if Question1 == "dogs":
There could be a few other errors. Make sure you indent after every "if" statement.
Explanation:
Ответ:
Hello. This is my favorite subject so I know this is right.
Your Answer is (A) A bottom-up approach.
100% Verified! :)
Explanation: