#12 for your a


#1



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"
    else:
        print char,


#Don't delete this print statement!
print


#2

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",


#3

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