subject

In your Code Editor, there is some code meant to output verses of the song "Old MacDonald had a farm." When the code is working properly, if the user types in Python for an animal (when prompted to "Enter an animal: ") and for the sound (when prompted to "Enter a sound: "), the program should output the following as it runs:

Old Macdonald had a farm, E-I-E-I-O
And on his farm he had a Python, E-I-E-I-O
With a - here and a - there
Here a there a
Everywhere a -
Old Macdonald had a farm, E-I-E-I-O
There are a few errors in the code provided in the Code Editor. Your task is to debug the code so that it outputs the verses correctly.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:00
1. so if i wanted to build a linux server for web services(apache) with 1cpu and 2 gb of memory.-operating at 75% of memory capacity2. a windows server with 2 cpu/ 4gb memory- operating at 85% of memory capacity3. a storage server with 1 cpu/ 2gb memory- operating at 85% of memory capacityhow much memory do i have to add for each server.so that the utilization rate for both cpu and memory is at a baseline of 60%."the details for the cpu like its processor or the memory's speed isnt to be concerned" yeah i kept asking my teacher if he's even sure about the but the whole class seems to be confused and the project is due in 3 days..this is a virtualization project where i have to virtualize a typical server into an exsi hypervisor.
Answers: 2
question
Computers and Technology, 23.06.2019 05:00
Acompany is inviting design for its new corporate logo from its users. this is an example of ? a. crowdfunding b. crowdvoting c. crowdsourced design d. crowdtracking
Answers: 3
question
Computers and Technology, 23.06.2019 07:00
To produce a starlight effect in her photograph, lina should choose the filter for her camera.
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
Facial expressions and gestures are examples of messages.
Answers: 3
You know the right answer?
In your Code Editor, there is some code meant to output verses of the song "Old MacDonald had a farm...
Questions
question
English, 30.01.2020 11:05
question
Mathematics, 30.01.2020 11:05
question
Social Studies, 30.01.2020 11:42
Questions on the website: 13722363