Where is the wrong?


#1

hay guys
where is the problem here
i didnt get any problem
but the game isnt correct doing what i make it to do!!
when i put any word always say
problem@@

print 'Welcome to the Pig Latin Translator!'
# Start coding here!
original = raw_input("Enter word:")
original = ("")
if len(original)>0 and original.isalpha()==True:
    print original
else:
    print ("empty")

`


#2

Remove the line of code number four, that is: "original = (" ")"
In the fifth line of your code give a space for the ">" sign between "if len (original)" and "0". Also remove this "== True"
In the sixth line, print does not need value, that is, you can to draw that "original" from there and leave print alone.
Also remove these parentheses from the "empty" print.


#3

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