I am not sure how to make this code print multiple inputs all plural. For example, if I type in the input "single-noun, single-noun, single-noun", it would print out as "single-noun, single-noun, plural-noun." For some reason, only the last string turns plural. How can I get it to print out "plural-noun, plural-noun, plural-noun?"
def double(noun):
if noun.endswith("ey"):
return noun + "s"
elif noun.endswith("y"):
return noun[:-1] + "ies"
elif noun.endswith("ch"):
return noun + "es"
else:
return noun + "s"
noun = input("type in here")
print (double(noun))