phrase = “A bird in the hand…”
Add your for loop
for char in phrase:
if char in [“A”,“a”]:
#Don’t delete this print statement!
the output of the above code is as shown below:
here I have excluded the Comma(,) after Char that’s why it is printing like this. as we can see , n is printed next to X… the same way b must get print after X in the very first line itself.
could anyone let me know the reason of it ??