Code works, yet is not accepted


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

Hello everybody,

My code seems to work but is not accepted and gives the error seen above. Please help.


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

# Add your for loop
for char in phrase:
    if char.lower()=='a':
        print 'X'
        print char,

#Don't delete this print statement!


Missing comma,

print 'X',


thanks dude, i had forgotten that the xs had to be on one line, not only the char.