Computer Science, asked by jamesholt, 6 months ago

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)

please debug this code im doing edhesive and its hard for me

Answers

Answered by chintansharma2503198
1

ok but mark my answer as brainlist first

follow me

Answered by amitverma3729
0
Enter an Animal
Enter a Sound
Old Macdonald had a farm, E
And on his farm he had a “Enter an animal”, E
Similar questions
Math, 3 months ago