This is my first post and I would be happy if someone could please explain to me why we need the result = ""
section in the following Python code.
It is a basic piece of code that turns a phrase such as World Wide Web into WWW.
def initials(phrase):
words = phrase.split()
result = ""
for word in words:
result += word[0].upper()
return result