Answers for "string remove ,replace, length in python"

0

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')
Posted by: Guest on September-20-2021

Python Answers by Framework

Browse Popular Code Answers by Language