Create Acronyms with Python

Configurare noua (How To)

Situatie

An acronym is a short form of a word created by long words or phrases such as NLP for natural language processing.You can do this by splitting and indexing to get the first word and then combine it.

Backup

user_input = str(input("Enter a Phrase: "))
text = user_input.split()
a = " "
for i in text:
    a = a+str(i[0]).upper()
print(a)

Solutie

Tip solutie

Permanent

Voteaza

(1 din 2 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?