12. For your A


#1

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

For some reason it won't accept this as an answer.
Please help me.


#2

You need a comma after print "X". should look like this.

if char == 'A' or char == 'a':
print 'x',


#3

Thank you that fixed the problem.


#4

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