#12 for your a


What did I do wrong?

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

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!


It looks like the SCT (submission correctness test) is expecting an uppercase "X". Try that.

Also, remember to include a comma after, as in, print "X",


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