This is my code so far:
lista = 'Text messaging, or texting, is the act of composing and sending electronic messages, typically consis'
n = lista.split()
m= ''
def adding(n):
for s in n:
if s.endswith('ing'):
s +='ly'
else:
s +='ing'
return s
print(adding(n))
I should use .join
somewhere, but I can't figure it out.
Thank you!