Solved: 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

I totally get the entire code. But, why does it ask that PRINT statement should not be deleted!? It's weird, because if i take that print statement off then it give me an error. Your help is much appreciated and I hope someone else could clear this doubt too (If they have probably have one like this). Thanks a lot. :slight_smile:


#2

That's becuase they want you to use it later on in the lesson. You'll see why later, but for now, just keep it as it is.


#3

Perfect! Thank you. :slight_smile:


#4

Please make your post title to say solved so people know you don't need help anymore. And you're welcome. Glad to help. :slight_smile:


#5

Thanks for doing that.


#6

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