Answer to Question #254231 in Python for emi

Question #254231

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)


Can you please figure this out.


1
Expert's answer
2021-10-20T14:29:04-0400
a = input("Enter an animal: ")
s = input("Enter a sound: ")
print("\n")
print("Old Macdonald had a farm.")
print("And on his farm he had a " + a + ".")
print("With a " + s + " " + s + " here")
print("And a " + s + " " + s + " there")
print("Here a "+ s + " there a " + s)
print("Everywhere a " + s + " " + s )
print("Old Macdonald had a farm.")

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS