1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Burka [1]
3 years ago
15

Write a loop that reads strings from console input where the string is either "duck" or "goose". The loop terminates when "goose

" is read in. After the loop, your code should print out the number of "duck" strings that were read.
Social Studies
1 answer:
bearhunter [10]3 years ago
6 0

Answer:

<em>Below is the step by step taken for a loop that reads strings from console input where the string is either "duck" or "goose"</em>

Explanation:

<em>ducks = 0 </em>

<em>bird = input('Please enter either duck or goose')</em>

<em>while bird != 'goose'</em>

<em>if bird == 'duck'</em>

<em>ducks+= 1 </em>

<em>bird = input('Please enter either duck or goose') </em>

<em>print('The number of ducks entered is' ducks)</em>

<em>end.</em>

You might be interested in
(pls help you will get brainliest)
Olenka [21]

Answer:

The days were cold and harsh, with little food and rain dampening the moods of everyone on the ship. Lots of people were passing on to the heavens because of diseases. I myself have so far been lucky enough to stay in good form, but others such as Little John, have not had the same luck as me. Little John had broken down in smallpox, and was still recovering in the infirmary down below. He also had scurvy from not getting enough Vitamin C. Captain says that we will reach the new world at least 10 days from now, but even 10 days are become unbearable. I have nothing else to do on this ship but record the passing days in my dearest diary. Father and mother would have gone on the ship with me, but they had to stay behind to maintain the family business. I can only hope that they are doing well, and I pray to god every night that they have good health and days. This is my first entry so far, and more are sure to come.

Explanation:

7 0
3 years ago
Read 2 more answers
I am trying to learn the names of all 50 states. while i am actively remembering and recalling this information, it is considere
lidiya [134]
That would be considered A. explicit memory. Hope this helps!
5 0
3 years ago
What physical feature of Europe has led to trade as an essential economic activity in Europe?
Harlamova29_29 [7]

Answer:

Rivers are abundant in Europe and have provided adequate transportation for travel and trade throughout its history. Most of Europe is accessible by water transport either via the many rivers or along the extensive coastlines of the peninsulas and islands. Two main rivers divide Europe: the Danube and the Rhine.

6 0
3 years ago
What does self government mean
Alchen [17]

self government means government of a country by its own people,especially after having been a colony
4 0
3 years ago
What were the traditional games played?​
sergejj [24]

Answer:

country side is where they are played

7 0
2 years ago
Other questions:
  • Why was the wheel important
    6·2 answers
  • 1. Cross-cultural research has found that people who live in _____________ cultures typically view their personalities as being
    11·1 answer
  • PLEASE HELP!!
    8·1 answer
  • Speaker 1: Our forests are an important ecosystem for plants and
    11·1 answer
  • Families as a socializing agency ________ to children. A are basically unnecessary B transmit cultural norms, beliefs and values
    12·1 answer
  • What is one characteristic of the fertile crescent that encouraged the development of agriculture?
    8·1 answer
  • Devin wants his speech to convince his audience to shop at the small grocery store that sells locally-grown produce rather than
    13·1 answer
  • The constitution provides for a federal system, which means the national government shares its powers with state governments. po
    6·1 answer
  • 5.
    15·2 answers
  • 1. Your unit has experienced many deaths in the past month and the staff is feeling very sad. What might you suggest to address
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!