Code works, yet is not accepted


#1



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

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.

Thanks,
csspro7874

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

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




#Don't delete this print statement!
print


#2

Missing comma,

print 'X',

#3

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