Skip to content

Instantly share code, notes, and snippets.

@usdtorero
Created March 16, 2014 19:41
Show Gist options
  • Select an option

  • Save usdtorero/9588700 to your computer and use it in GitHub Desktop.

Select an option

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