IndentationError: unexpected indent? Word Up Lesson


#1

Hello.

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
else:
    print 'empty'

#2

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.


#3

looking at your code:

Screenshot_2018-04-04_11-47-02

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


#6

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