Python Pig Latin Translator -


so have been working on @ codecademy.com while trying learn python. don't know if blind , can't see why won't work or what. here's code won't let me use. function print variable if had typed in , print "empty" if didn't type anything.

print "welcome english pig latin translator!" original = raw_input("what's name?") if len(original) > 0         print original     else         print "empty" 

if len(original) > 0 else 

the above lines contains syntax errors. try:

if len(original) > 0: else: 

note added colons, (:).


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -