11/11 Error


The instructions say, “
When you’re sure your translator is working just the way you want it, click Run Code to finish this project.” There is no hint, which makes sense because the only thing you should have to do is click Run. However, not only does it take at least 5 minutes to load, it keeps saying the code is wrong, even though it was right all the way up to here. My code is below, in case someone can find an error.

pyg = 'ay'

original = raw_input('Enter a word:')

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



can you show a screenshot? don’t forget that raw_input() prompts you for input, you have to enter something in the console to satisfy the prompt


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