Dont understand the error message


Oops, try again. Did you create a variable called word?

pyg = 'ay'

original = raw_input('Enter a word:')

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

File "python", line 7
First= word[0]
IndentationError: unexpected indent


There should be indentation on all lines inside the if code block. Be sure to use first not First.

    print "empty"


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