Answer to Question #235881 in Python for Isabel Cortez

Question #235881

Input


The letter to be checked


Description

N/A


Constraints

N/A


Sample

N/A


Output


The first line will contain a message prompt to input the letter to be checked.

The second line verifies whether the letter is a vowel or not.


Enter·the·letter:·a

Vowel


1
Expert's answer
2021-09-12T12:26:28-0400
ch = input('Enter the letter: ')[0]
if ch.lower() in ['a', 'e', 'i', 'o', 'u']:
    print('Vowel')
else:
    print('Consonant')

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS