Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

add ing to the end of a string or add ly if the string ends with ing python

def add_suffix(input_string):
	if len(input_string) < 3: return input_string
    if input_string.endsWith("ing"): return input_string + "ly"
    else: return input_string + "ing"
 
PREVIOUS NEXT
Tagged: #add #ing #string #add #ly #string #ends #ing #python
ADD COMMENT
Topic
Name
1+8 =