Skip to content

Instantly share code, notes, and snippets.

@basil2style
Created June 1, 2015 13:29
Show Gist options
  • Select an option

  • Save basil2style/b19c49a134b53c247749 to your computer and use it in GitHub Desktop.

Select an option

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