T h e b i r d X i n t r i g h t (for your A!)


#1

xny suggestions!?


#2

Remove the spaces, by checking if it's a letter.


#3

Well thXt mXkes no difference!!


#4

You are printing each seperately, you should append, not print, either X or char to an array, and then return a joined version of the array. It wants you to return the entire thing as a whole.


#5

X screen shot of the code might help me more!!


#6

I'm not going to give you a free answer, you weren't even doing what I suggested.


#7

well thXnks, your lil' burn helped me here!!


#8

is there a way to not type the "char==" every time?

for example using

if char == 'a' or 'A":

instead of

if char == 'a' or char == 'A":


#9

Nup! There ain't any!


#10

This worked for me.

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

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

print


#11

Your code is right. Don't remove that print statement @ last.


#12

But why!? Why that matters!?


#13

It's all about compiler configuration.
Your code is right but not as per requirements given in questions.


#14

Is that it bro! Well thanks for letting me know!