User:Colm/prototyping-python

From XPUB & Lens-Based wiki

small python attempts from the class and others

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
print new_word

else:

   print 'empty'