Ending up


#1



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


File "python", line 6
word = original.lower()
^
IndentationError: expected an indented block


Replace this line with your code. 
pyg = 'ay'

original = raw_input('Enter a word:')

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


#2

Python blocks are indented...

if ____:
    # code
else:
    # code

The colon represents the opening of a block.


#3

all the code that should part of the if clause should be indented:

if condition:
   print "i am part of the if clause"
print "i am not"

#4

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