Create a python program that will accept a string. Count the length of the string and convert all vowels to upper case and all consonants to lower case. Count the number of vowels and consonants in the string. Display all vowels and consonant characters found in the string and the index number of each vowel and consonant character
Create a python program that will accept a string. Count the length of the string and convert all vowels to upper case and all consonants to lower case. Count the number of vowels and consonants in the string. Display all vowels and consonant characters found in the string and the index number of each vowel and consonant character.
Example:
Enter a string: the quick brown fox
String length is 19
Converted string in upper case and lower case: thE qUIck brOwn fOx
There are 5 vowels
Vowel characters are: e u i o o
Vowel characters can be found at index: 2 5 6 12 17
There are 11 consonant characters.
Consonant characters are: t h q c k b r w n f x
Consonant characters can be found at index: 0 1 4 7 8 10 11 13 14 16 18

Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images









