Question: Cannot seem to figure out what is going wrong and could use help please 1. The decision tree shown below is a crude approach for

Cannot seem to figure out what is going wrong and could use help please
Cannot seem to figure out what is going wrong and could use
help please 1. The decision tree shown below is a crude approach

1. The decision tree shown below is a crude approach for identifying an animal. You should write a short code that asks users (use the Python input() function) if the animal has feathers (yeso)? If yes, it should ask (use the Python input() function) can it fly (yeso)? and, if yes print 'Hawk' to the screen, if no print 'Penguin'. If the animal does not have feathers, the code should then ask if the animal has fins (yes / no)? If the answer is yes, then it should print 'Dolphin' and otherwise print 'Bear'. You should use 'if, 'else', and 'elif' statements in this code. Hint: feathers=input('Does your animal have feathers?')

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!