Skip to content

Instantly share code, notes, and snippets.

View uncletomiwa's full-sized avatar
🏠
Working from home

Tomiwa Ijaware uncletomiwa

🏠
Working from home
View GitHub Profile
@uncletomiwa
uncletomiwa / Check First Letter
Created October 27, 2013 18:50
This helps you check if the first letter is a consonant or a vowel
vowels = ['a', 'e', 'i', 'o', 'u']
word = raw_input('Enter a word:')
try:
word = word.lower()
is_vowel = word[0] in vowels
if (is_vowel):
print("Vowel")
else:
print("Consonant")
except: