How it works? is there any mistake?


def the_string
if has_chars(the_string) and the_string.isalpha():
print the_string
print "empty"

  • Ask the user to input a word in English.
  • Make sure the user entered a valid word.
  • Convert the word from English to Pig Latin.
  • Display the translation result.

Suggest go back to Lesson 3 and start over. The above does not resemble anything in the instructions.


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