How it works? is there any mistake?


#1

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


#2
  • 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.


#3

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