In str.replace(old , new[, count],what is the use of count?,how to use count
In str.replace(old, new[, count],what is the use of count?,how to use count
Collapse
X
-
sandeep neeruduTags: None -
As described in the Python documentation:
P.S.Return a copy of the string with all occurrences of substring old replaced by new. If the optional argument count is given, only the first count occurrences are replaced.
Google is your friend!
Comment