Here is a string in python:
a = "asdf as df adsf as df asdf asd f"
Lets say that I want to replace all " " with "||", so I do:
>>> a.replace(" ", "||")
'asdf||as||df||adsf||as||df||asdf||asd||f'
My confusion is info from the documentation as below:
string.replace(s, old, new[, maxreplace])
Return a copy of string s with all occurrences...
I can "omit" s, but based on the documentation I need s; however, I only provide old, and new. I noticed that it's like this with a lot of the python documentation; what am I missing?