I am trying to write a program that replaces every 'a' for '&'.I am currently stumped and was wondering if someone could write it for me to get an idea of what it would look like. Thanks.
Asked
Active
Viewed 122 times
-4
-
You might have better luck learning that [here](https://www.codecademy.com/learn/learn-python) – emporerblk Nov 05 '17 at 18:36
1 Answers
1
strw = "kabhi kabhi mery dil main khyaal aata hy"
print (strw.replace("a", "&"))

Muhammad Usman
- 10,039
- 22
- 39