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)
Answers
Answered by
1
Answer:
i will text you it
Explanation:
Similar questions