See More

s=input("enter a string:") if(s[-3:]=='ing'): s=s[:]+'ly' else: s=s[:]+'ing' print(s)