Write a Python program to add 'ing' at the end of a given string .
Answers
Answered by
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
2
def add_string(str1): length = len(str1) if length > 2: if str1[-3:] == 'ing': str1 += 'ly' else: str1 += 'ing' return str1.
Similar questions
Social Sciences,
3 months ago
Math,
3 months ago
Math,
3 months ago
Biology,
6 months ago
Political Science,
6 months ago
Physics,
9 months ago