Skip to content

Instantly share code, notes, and snippets.

@binury
Created June 7, 2013 01:22
Show Gist options
  • Save binury/5726460 to your computer and use it in GitHub Desktop.
Save binury/5726460 to your computer and use it in GitHub Desktop.
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':
new_word = word + 'ay'
print new_word
else:
new_word = word[1:] + 'ay'
print new_word
else:
print 'empty'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment