Question #103022

a = input("Enter an animal: ")

s = input ("Enter a sound: ")


e = "E"


print ("Old Macdonald had a farm, " + e)

print ("And on his farm he had a" + a + "," + e)

print ("With a " + a + "-" + a + " here and a" + s + "-" + s + " there")

print ("Here a "+ s+ " there a " +s)

print ("Everywhere a" + s + "-" + a )

print ("Old Macdonald had a farm," + e)

Expert's answer

The text of question isn't understandable, i only can write in in python like this:

a = input("Enter an animal: ")
s = input("Enter a sound: ")
e = "E"
print("Old Macdonald had a farm "+ e)
print("And on his farm he had a" + a + "," + e)
print("With a " + a + "-" + a + " here and a " + s + "-" + s + " there")
print("Here a "+ s+ " there a " +s)
print("Everywhere a" + s + "-" + a )
print("Old Macdonald had a farm, " + e)




LATEST TUTORIALS
APPROVED BY CLIENTS