Why can't I print?

pyg = 'ay'

original = raw_input('Enter a word:')

if len(original) > 0 and original.isalpha():
    word = original.lower()
    first = word[0]
    new_word = word + first +pyg
    new_word = new_word[1:len(new_word)] 
 Print new_word

I got an error as File “python”, line 10
Print new_word
IndentationError: unindent does not match any outer indentation level

what is wrong with this print statement ?


Must be in lowercase.

Print ... => incorrect

print ... => correct

As to the error message, once the code is formatted for posting we can see the missing indentation on that line, as well.


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