Skip to content

Commit 1ab5715

Browse files
replace A or a with X
1 parent e30a79a commit 1ab5715

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎replace_a.py‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
phrase = "A bird in the hand..."
2+
3+
for char in phrase:
4+
if char == "A" or char == "a":
5+
print("X"),
6+
else:
7+
print char,
8+
9+
print

0 commit comments

Comments
 (0)