Oops, try again. The original variable ("gg") had more than 0 characters but did not get printed


#1


print 'Welcome to the Pig Latin Translator!'

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

When I type something, the word "awesome" will not be printed out. I have figured this a few days. Hope that I can get the response. Thank you.


#2

what's your error message?are you getting any indentation error?
and are you sure you want to print awesome all the time instead of the value of the variable named original.

To fomat your code properly do the following

  • copy your code and paste it here
  • select the whole code
  • click on the </> above

#3

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