Python Tips & Tricks- to check vowel or consonant #shorts #python #pythonforbeginners

preview_player
Показать описание
#shorts #python #coding #programming #pythonprogramming #pythonshorts #pythonforbeginners
The code has been included in the comments section
Рекомендации по теме
Комментарии
Автор

This is the code

let=['A', 'E', 'I', 'O', 'U']
ch=input('Enter the letter ')
if ch.upper() in let:
print('Vowel letter ')
else:
print('Consonant letter ')

"ch.upper()" is used to convert letters to uppercase

scbitslchannel