Why i'm getting empty result?


#1



Replace this line with your code.


#2

Your problem may be from how you get your input. (I am a little rusty with python BUT)
I am pretty sure you should get your input as follows:

original = raw_input(" Enter a word:")

#3

corrected ...but still the same problem


#4

Strange, this code works for me.

print "Welcome to the Pig Latin Translator!"
original = raw_input( "Enter a word:")

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

#5

i rechecked...everything seems to be okay...but the problem remains


#6

Try copying/pasting mine. I just tested it again on the codecademy labs and it works as you would expect it.


#7

yes i did and it worked in an external console...but why is it nor working in here?


#8

Why do you have brackets around original though when printing?


#9

does it matter?...because the code is working in an external compiler.. but not here


#10

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