Write a Python Program to Count and Display the Vowels of a Given Text

preview_player
Показать описание
Hi Guys, Welcome to my channel.

In this video you will learn about how to Write a Python Program to Count and Display the Vowels of a Given Text

Python Scripts
======================

Python Functions Solved
==========================

Python Programs Solved
============================

Code
=============================
"""
Write a Python Program to Count and Display the Vowels of a Given Text
"""

my_text = input("Enter a Text : ")

vowels = "AEIOUaeiou"

count = len([letter for letter in my_text if letter in vowels])

vowels_to_display = set([letter for letter in my_text if letter in vowels])

print("Count of Vowels in Text is : ", count)
print("Vowels Contained in Text is : ", vowels_to_display)

Keywords
=============================
#python #python3 #python_assignment #pythonprogramming #pythontutorial #pythonprojects #pythoncourse #pythonbaba #pythonforbeginners #pythonautomation #pythonbasic #pythonbeginners
Рекомендации по теме