IndentationError: unexpected indent? Word Up Lesson



can someone take a look at this code on the :word up lesson in the PYGLATIN section? Thanks :))

I get this message

File “python”, line 8
print original
IndentationError: unexpected indent

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'


Please write your code between back ticks so your code can be displayed properly. When it comes to python, make sure to only use one method of indentation, e.g. tabs or spaces. In your case, some lines of your code might have been indented in multiple methods.


looking at your code:


looks like you have an indent issue, i would re-indent the print statement


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