PY
py
1
2
3
4
5
6
a = "Most people think I'm over 200 pounds, but I'm really only 150 pounds!"
def replace(string, to_replace, replacer):
return replacer.join(string.split(to_replace))
print(replace(a, "pounds", "lbs"))
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run