Skip to content

Instantly share code, notes, and snippets.

@stevekrenzel
Forked from nharrell04/doesnt_work
Last active December 15, 2015 04:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevekrenzel/5199639 to your computer and use it in GitHub Desktop.
Save stevekrenzel/5199639 to your computer and use it in GitHub Desktop.
pyg = 'ay'
original = raw_input('Enter a word:')
if len(original) > 0 and original.isalpha():
word = original.lower()
first = word[0]
if first == "a" or "e" or "i" or "o" or "u":
print "vowel"
else:
print "consonant"
else:
print 'empty'
this is an edit. new revision.
pyg = 'ay'
original = raw_input('Enter a word:')
if len(original) > 0 and original.isalpha():
word = original.lower()
first = word[0]
if first == "a" or first == "e" or first == "i" or first == "o" or first == "u":
print "vowel"
else:
print "consonant"
else:
print 'empty'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment