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
Math,
4 months ago
Math,
4 months ago
World Languages,
4 months ago
Biology,
9 months ago
Political Science,
9 months ago
Physics,
1 year ago