subject
Computers and Technology, 19.11.2020 18:00 JSTAX01

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. animal = input("Enter an animal: ")
sound = input ("Enter a sound: ")

e = "E"

print ("Old Macdonald had a farm, " + e)
print ("And on his farm he had a" + animal + "," + e)
print ("With a " + animal + "-" + animal + " here and a" + sound + "-" + sound + " there")
print ("Here a "+ sound+ " there a " +sound)
print ("Everywhere a" + sound + "-" + animal )
print ("Old Macdonald had a farm," + e)

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 07:30
What is the penalty for violating section 1201 of title 17 chapter 21 of the us code
Answers: 1
question
Computers and Technology, 23.06.2019 21:40
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings. for each match, add one point to user_score. upon a mismatch, end the game. sample output with inputs: 'rrgbryybgy' 'rrgbbrybgy'
Answers: 3
question
Computers and Technology, 24.06.2019 01:00
How can the temperature of a room be raised by 5degreesf?
Answers: 1
question
Computers and Technology, 24.06.2019 07:00
Why do we mark tlc plates with pencil and not with pen
Answers: 2
You know the right answer?
There are a few errors in the code provided in the Code Editor. Your task is to debug the code so th...
Questions
question
Mathematics, 15.11.2019 05:31
question
Mathematics, 15.11.2019 05:31