My code keeps returning the error "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 . . ."."
I have tried to find similar posts to see if anyone else has had the same issue but have had no luck. I feel like my code is doing everything it is supposed to other than the spaces it wants in between the characters being printed out. I have also tried to add an additional print line to fix this but that does not seem to solve it either. Any suggestions would be greatly appreciated!
Here is my code...
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