Good day! I just wanted to ask, is my code below is effective? Can it be shorter?
The code works, though – just being curious.
pyg = 'ay' original = raw_input('Enter a word:') if len(original) > 0 and original.isalpha(): word = original.lower() first = word new_word = word + first + pyg new_word = new_word[1:len(new_word)] print new_word else: print 'empty'