"check yourself" doesnt work


print 'Welcome to the Pig Latin Translator!'

Start coding here!

original = raw_input("Enter a word:")

if len(original) > 0 :

 print  original

     print "ssoo"


your else statement place is not correct , if and elif and else most be in a same colon :

original=raw_input( "Enter a word: ")
if len(original)> 0:
....print original
....print "ssoo"

if and else start in col 1
print start in col 5


Don't put a space between if len(original)<0:
It'll mess up your code.


Hello - Can you have a look at my codes

print 'Welcome to the Pig Latin Translator!'

Start coding here!

original = raw_input ("Enter a word:")
if len (original) > 0:
print original
print "empty"

When I ran, it kept saying " File "python", line 7
SyntaxError: invalid syntax"


That's an indentation problem indent your if block like this,

if len(original) > 0:
    print original
    print "empty"


Ah...ha... now it works...wow, thank you so much, it is very helpful :grinning:


You're super welcome! :grin:

If that was the answer you were looking for feel free to click the solution button below my reply. :smile:


eh..sorry I can not find the "solution button", or did you mean the heart (like) icon??? :sweat:


No there's one that looks like a tick in a box


I just learned from other post that the soultion button should appear at
the left most under your reply, next to the heart icon, which means to
notify that the problem is solved but I still cannot find it. Here is
what my screen looks like:


It's okay :slight_smile: To see the solution button you had to have been the original poster.


yah. that's what I thought too... :relaxed:


I'm having a problem with this string too. I've checked myself against the answers here and it looks the same but it keeps returning "empty" even if i do type letters. Any ideas?


line 5 shouldn't be there. just call original on the same line like this, :slight_smile:

original = raw_input("Enter a word: ")


i'm facing the same problem!can you post the correct code here?