Computer Science, asked by adithyan42556, 6 months ago

Write a Python program to add 'ing' at the end of a given string .

Answers

Answered by k047
2

def test():

num=input("Enter a number:")

sum=0

for i in num:

sum+=int(i)

print("Sum=", sum)

Hope it helps! If it did, pls mark it brainliest !

Answered by itzcupycake
2
def add_string(str1): length = len(str1) if length > 2: if str1[-3:] == 'ing': str1 += 'ly' else: str1 += 'ing' return str1.
Similar questions