Add "ing" and "ly" (Problem 1) - InfyTQ Solution in Python

Add "ing" and "ly"

InfyTQ Solution in Python


PROBLEM STATEMENT

Write a python function to add 'ing' at the end of a given string and return the new string.
If the given string already ends with 'ing' then add 'ly'.
If the length of the given string is less than 3, leave it unchanged.
Sample Input Expected Output
Sleep Sleeping
Amazing Amazingly
Is Is



SOLUTION
SHARE If you find this useful, please share with your friends and Community.
CODE TOGETHER..GROW TOGETHER.
Newer Posts Newer Posts Older Posts Older Posts

More posts

Comments

Post a Comment

Sponsored Content