HI, I'm having some trouble with this program - its supposed to return an acronym based on the input of the user: It prints three of the same letter instead of the acronym. Any help would be much appreciated.
def acronym(phrase):
a = ""
for words in phrase.split():
a = a + phrase[0]
return a
def main():
print("This program creates an acronym for a phrase")
print("entered by the user.")
text = input("Please enter your phrase: ")
text = text.upper()
answer = acronym(text)
print(str(answer))
main()