I think i cheated... =)


#1


I really didn't think this would work but I couldn't figure out the lesson so I did it =)


phrase = "X bird in the hXnd..."

# Add your for loop
for char in phrase:
    print char,
    
if char is 'A' or char is 'a':
    print 'X'
    
print


#2

Go back to the original phrase and add a comma to the print statement...

print "X",

This will cause all printing to be on one line.


#3

Huh? Run the code I posted... It works for some reason :slight_smile:


#4

Give us a link to the exercise, and I will run it.


#5

Sorry I took so long to reply here it is

https://www.codecademy.com/en/courses/python-beginner-en-cxMGf/1/4?curriculum_id=4f89dab3d788890003000096


#6

This also works...

phrase = "X bird in the hXnd..."

# Add your for loop
for char in phrase:
    print char,

    
print

#7

Without hardcoding the result, try your hand at solving it with your code to display,

X   b i r d   i n   t h e   h X n d . . .

#8

:open_mouth: I like Finding different ways to complete the levels... :smiley:


#9

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