how to use replace python code example
Example 1: python replace string
string.replace(old, new, count)
Example 2: set replace python
# Replace 1 with 4
s = {1, 2, 3}
s.remove(1)
s.add(4)
string.replace(old, new, count)
# Replace 1 with 4
s = {1, 2, 3}
s.remove(1)
s.add(4)