Help with Python PygLatin 10/11


#1



https://www.codecademy.com/en/courses/python-beginner-2W5v7/1/4?curriculum_id=4f89dab3d788890003000096#


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

else:
print 'empty'


#2

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"

#3

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