I have this function which works but I am trying to make it as short as possible. Something like: return [result(result += word[0]) for word in text]. Basically in one line, but it doesn't seem to work.
def first_letter(text):
text = text.upper().split()
result = ''
for word in text:
result += word[0]
return result