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
  • Select an option

  • Save stevekrenzel/5199639 to your computer and use it in GitHub Desktop.

Select an option

Save stevekrenzel/5199639 to your computer and use it in GitHub Desktop.

Revisions

  1. stevekrenzel revised this gist Mar 19, 2013. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    this is an edit. new revision.
  2. @nharrell04 nharrell04 created this gist Mar 18, 2013.
    13 changes: 13 additions & 0 deletions doesnt_work
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    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'
    13 changes: 13 additions & 0 deletions works
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    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'