Skip to content

Instantly share code, notes, and snippets.

@mamonu
Created July 26, 2015 19:00
Show Gist options
  • Select an option

  • Save mamonu/e85b0ade8f3a29e2cdc3 to your computer and use it in GitHub Desktop.

Select an option

Save mamonu/e85b0ade8f3a29e2cdc3 to your computer and use it in GitHub Desktop.
pyg = 'ay'
original = raw_input('Enter a word:')
word=original.lower()
first = word[0]
new_word=word+first+pyg
new_word=new_word[1:len(new_word)]
if len(original) > 0 and original.isalpha():
print new_word
else:
print 'empty'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment