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