how to replace value in a string python code example
Example 1: python change character in string
mytext = 'Hello Zorld'
mytext = mytext.replace('Z', 'W')
print mytext,
Example 2: python replace "\" for "/"
my_string = r'\\ServerA\DriveB\5.FolderC\A.TXT'
my_string = my_string.replace('\\', '/')