Skip to content

Instantly share code, notes, and snippets.

@acook
Forked from anonymous/gist:5224294
Last active December 15, 2015 07:39
Show Gist options
  • Save acook/5224559 to your computer and use it in GitHub Desktop.
Save acook/5224559 to your computer and use it in GitHub Desktop.
# Defining main variables for translator
pyg = 'ay'
original = raw_input('Enter a word:')
word = original.lower()
first = word [0]
#Beginning of if/else statements
if len(original) > 0 and original.isalpha():
if first == "a" or first == "e" or first == "i" or first == "o" or first == "u":
new_word = word+pyg
print new_word
else:
new_word = word[1:]+first+pyg
print new_word
else:
print 'empty'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment