12/19 What's wrong in the code


#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,


#2

i wrote the same , with the right colums for if and else ,, the result is X bird in the hXnd ... and it stucked , i


#3

I find it .. the code is ok , with the right colums !! of course , and you mustn't erase the last print .


#4

Still unable to catch the mistake. Might be some silly mistake..


#5

get 1 indent inside for if/else , 4 indents for the prints and you get it - don't forget :don't erase the last print statement


#6

I don't get the problem.. could you please c/p your code?


#7

Here is my working 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