-4

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.

1 Answers1

1
strw = "kabhi kabhi mery dil main khyaal aata hy"
print (strw.replace("a", "&"))
Muhammad Usman
  • 10,039
  • 22
  • 39