- Write a Python program to add ‘ing’ at the end of a given string (length should be at least 3). If the given string already ends with ‘ing’ then add ‘ly’ instead. If the string length of the given string is less than 3, leave it unchanged. Example:- Sample String : ‘abc’ Expected Result : ‘abcing’ Sample String : ‘string’ Expected Result : ‘stringly’
Write a Python program to add ‘ing’ at the end of a given string (length should be at least 3). …
Share
Q// Write a Python program to add ‘ing’ at the end of a given string (length should be at least 3).
ANSWER: Download below attachment for answer