Check Yourself!


#1



https://www.codecademy.com/en/courses/python-beginner-2W5v7/0/4?curriculum_id=4f89dab3d788890003000096#


What am i doing wrong here? I can´t get it to print the word of the user



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


#2

Remove this line,

and remove this one as well,

Change the name of this variable to original and not name,

your if statement should check original not empty_string,

if len(original) > 0:


#3

print 'Welcome to the Pig Latin Translator!'

Start coding here!

original = raw_input("what's your damn name" )
if len(original) > 0:
print raw_input("jimmy")
else:
print "empty"

thats how I coded mine, I replaced "print raw_input" with my previous answer before the check up...to check it up


#4

Thank you for this! Problem solved! :slight_smile:


#5

You are welcome:relaxed:


#6

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