For your A


Oops, try again. Did you replace all of the "A"s and "a"s with "X"s? It looks like you printed "X bird in the hXnd..." instead of "X b i r d i n t h e h X n d . . .".

Why is this wrong? Thanks!

phrase = "A bird in the hand..."

# Add your for loop
for char in phrase:
    if char == "A" or char == "a":
        print "X",
        print char,
#Don't delete this print statement!


That print statement should not be indented.


you sir are a saint.

why does indenting that last print cause the characters to print vertically?


Because without a comma after it, print ends each line with a newline character.


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