Created
June 1, 2015 13:29
-
-
Save basil2style/b19c49a134b53c247749 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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