Help needed!


pyg = ‘ay’

original = raw_input(‘Enter a word:’)
if len(original) > 0 and original.isalpha():
word = original.lower()
first = word[0]
print original
print ‘empty’


Looks good so far. At this point we do not need to print original so that line may be removed. It appears you are on the step that combines string to form a new_word. Write that line where print original is, right now.

Be sure your indentation is consistent and correct.

pyg = '...'
original = ...
if ...
    word = '...'
    first = ...
    new_word = ...
    print 'empty'


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.