Help with Python PygLatin 10/11


File "python", line 6
print original
IndentationError: expected an indented block

pyg = 'ay'

original = raw_input('Enter a word:')

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

print 'empty'


there is no indention at all in your code? python uses indention to determine what is nested inside your if:

if True:
   print "i am indented, so i am inside the if statement"


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