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 non-consonant character type:
1. Vowels [a,e,i,o,u]
2. Digits [0,1,2,...9]
3. Punctuation [,,;,.,?,!]
Prompt the user to enter a character and use the in membership operator to create if-elif-else
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 case-insensitive. 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!