Identify the problem in the code


#1



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


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


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

for char in phrase:
    if char=="A" or char=="a":
        print"X",
    else:
        print(char),


#2

Make sure you don't delete the last line..

#Don't delete this print statement!
print

#3

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