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

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
Get step-by-step solutions from verified subject matter experts
