Did you accidentally delete the first variable? who can tell me why?


#1

pyg = 'ay'

original = raw_input('Enter a word:')

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


Oops, try again. Did you accidentally delete the first variable?
who can tell me why?


Pyg Latin 6 - 10: Wrong Instruction?
#2

The SCT is examining the output. This line is only for the one lesson where we create the if statement. At this point it should be removed so it does not print the original.


#3

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