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, 23.06.2019 09:00
What provides an array of buttons for quick access to commonly used commands and tools
Answers: 1
question
Computers and Technology, 23.06.2019 09:00
Design a class tictactoe that: holds the following information about the game: two-dimensional array (3 by 3), and winner. add additional variables as needed. includes the functions to perform the various operations on objects. for example, function to print the board, getting the move, checking if move is valid, determining if there is a winner after each move. add additional operations as needed. includes constructor(s). write the functions of the class, and write a program that uses the class. the program should declare an object of type tictactoe. the program will create the board and store it in the array. the program will allow two players to play the tic-tac-toe game. after every valid move update the array, check if there is a winner. if there is no winner and no tie, then print the board again to continue.
Answers: 2
question
Computers and Technology, 23.06.2019 17:30
What are the most commonly found items in the trash according to the municipal solid waste report?
Answers: 1
question
Computers and Technology, 24.06.2019 16:00
Which of the following characters is acceptable to use in a filename? ? / – %
Answers: 1
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
Mathematics, 30.10.2020 03:00
question
Mathematics, 30.10.2020 03:00
question
Computers and Technology, 30.10.2020 03:00
question
Advanced Placement (AP), 30.10.2020 03:00
question
Social Studies, 30.10.2020 03:00
question
Mathematics, 30.10.2020 03:00
Questions on the website: 13722367