(Jan-11-2020, 07:45 AM)lummers Wrote: Write a program that allows a user to type in a phrase and provides the acronym as the output. The acronym should be in uppercase.
Like this?
Quote:How it supposed to work? --> HISTW
Task in spoken language: 'take first letter and make it uppercase for every word in sentence and join them into new string'
In [1]: s = 'How it supposed to work?' In [2]: ''.join([word[0].upper() for word in s.split()]) Out[2]: 'HISTW'
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.