Lesson 1 Funny Python Acronym Creator

Publié le: 17 mai 2021
sur la chaîne: 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  


Sur cette page du site, vous pouvez voir la vidéo en ligne Lesson 1 Funny Python Acronym Creator durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur CodingScientist 17 mai 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 140 fois et il a aimé 1 téléspectateurs. Bon visionnage!