Home / Expert Answers / Computer Science / in-python-count-vowels-and-consonants-assume-letters-a-e-i-o-and-u-as-the-vowels-write-a-pr-pa931

(Solved): In PYTHON (Count vowels and consonants) Assume letters A, E, I, O, and U as the vowels. Write a pr ...



In PYTHON

(Count vowels and consonants)
Assume letters A, E, I, O, and U as the vowels. Write a program that prompts
the user to enter

(Count vowels and consonants) Assume letters A, E, I, O, and U as the vowels. Write a program that prompts the user to enter a string and displays the number of vowels and consonants in the string. Sample Run Enter a string: Programming is fun The number of vowels is 5 The number of consonants is 11 If you get a logical or runtime error, please refer https://liangpy.pearsoncmg.com/faq.html.


We have an Answer from Expert

View Expert Answer

Expert Answer


str1 = input("Please Enter String : ") vowels = 0 consonants = 0 for i in s
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe