Question: Write a program with a loop that repeatedly reads a string as input, where the string is either duck or goose. The loop should terminate
Write a program with a loop that repeatedly reads a string as input, where the string is either "duck" or "goose". The loop should terminate when "goose" is entered. After the loop, your code should display the number of times "duck" was entered.
NOTE: When reading the input, do not display a prompt for the user. Use the input function with no prompt string. Here is an example:
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
