I found a bug


#1

There's a bug in a Python's lesson (PygLatin Part2 10). Could anyone check this for me?


#2

I think there's no problem there: if you are having problems try this:

pyg = 'ay'

original = raw_input('Enter a word:')
word = original.lower()
first = word[0]
new_word = word + first + pyg
new_word = new_word[1:len(new_word)]

if len(new_word) > 0 and new_word.isalpha():
print new_word
else:
print 'empty'


different way:

pyg = 'ay'

original = raw_input('Enter a word:')
word = original.lower()
first = word[0]
new_word = word + first + pyg
new_word = new_word[1:]

if len(new_word) > 0 and new_word.isalpha():
print new_word
else:
print 'empty'


#3

cara é só vc igualar new_word = new_word[1:len(new_word)]


#4

or