Write a Python program that will ask the user to enter a word as an input.
inputstring=input()
if len(inputstring)<4:
print(inputstring)
elif len(inputstring)>3:
if inputstring.endswith('er'):
print(inputstring[:-2]+'est')
elif inputstring.endswith('est'):
print(inputstring)
else:
print(inputstring+'er')
Comments
Leave a comment