Question: Write a program that determines whether a given character is a vowel, consonant, digit, or punctuation. Create a list for each non - consonant character
Write a program that determines whether a given character is a vowel, consonant, digit, or punctuation.
Create a list for each nonconsonant character type:
Vowels aeiou
Digits
Punctuation ;
Prompt the user to enter a character and use the in membership operator to create ifelifelse
statements that check if the entered character is in one of the lists above. Print out a message stating if
the entered character is a vowel, consonant, digit, or punctuation.
Case Insensitivity: Consider making the program caseinsensitive. Before checking, you can use the
lower string method to convert the input letter to lowercase. Ex var.lower
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
