subject

Write a program with a loop that repeatedly reads a string as input, where the string is either "duck" or "goose". The loop terminates when "goose" is entered. After the loop, your code should print out the number of "duck" strings that were read. 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: bird = input()

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 03:40, hussain34
Mary's manager told her she should insert a graphic into her documentwrite mary a brief note describing how to insert a graphicin a word processing document.
Answers: 1
image
Computers and Technology, 24.06.2019 00:20, danielmartinez024m
The guy wire bd exerts on the telephone pole ac a force p directed along bd. knowing the p must have a 720-n component perpendicular to the pole ac, determine the magnitude of force p and its component along line ac.
Answers: 2
image
Computers and Technology, 24.06.2019 17:30, leenzazou98241
What is the next step if your volume does not work on computer
Answers: 2
image
Computers and Technology, 25.06.2019 11:00, Nevaeh3700
In a paragraph of no less than 125 words, describe how you would create a new database using your software.
Answers: 1
You know the right answer?
Write a program with a loop that repeatedly reads a string as input, where the string is either "duc...

Questions in other subjects:

Konu
Mathematics, 10.03.2020 05:40