Lesson 1 Funny Python Acronym Creator

Опубликовано: 17 Май 2021
на канале: CodingScientist
140
1

An acronym is a short form of a word created by long words or phrases such as NLP for natural language processing. In this project, I will walk you through how to write a program to create acronyms using Python.
To create acronyms using Python, you need to write a python program that generates a short form of a word from a given sentence. You can do this by splitting and indexing to get the first word and then combine it. Let’s see how to create an acronym using Python
In this code, I am first taking a string user input, then I am using the split() function in Python for splitting the sentence. Then I declared a new variable ‘a’ to store the acronym of a phrase.
Then at the end, I am running a for loop over the variable ‘text’ which represents the split of user input. While running the for loop we are storing the index value of str[0] of every word after a split and turning it into an uppercase format by using the upper() function.

Python Source Codes : https://github.com/AnbuKumar-maker/Fu...
Contact us for more projects: info@codingscientist.com
WhatsApp Support: +91-99725-77735
Learning Platform: https://www.codingscientist.com
Hackster Community: https://www.hackster.io/anbu-kumar
LinkedIn:   / codingscientist  
Facebook:   / coding.scientist  
Twitter:   / robo_thoughts  


На этой странице сайта вы можете посмотреть видео онлайн Lesson 1 Funny Python Acronym Creator длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь CodingScientist 17 Май 2021, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 140 раз и оно понравилось 1 зрителям. Приятного просмотра!