Python str_replace()

Python uses a function on the str/unicode object instead of a standalone function

new_s = s.replace(match, replacement)

You can view more PHP-Python statements here.

Leave a Reply