string remove ,replace, length in python
text=input("enter the words:")
length=len(text)
check=text[-3:]
if length>=3:
if check=="ing":
check=check.replace('ing','ly')
take=length-3
print(text[:take]+check)
else:
print(text+'ing')