how to modify a string in python code example
Example 1: python change character in string
mytext = 'Hello Zorld'
mytext = mytext.replace('Z', 'W')
print mytext,
Example 2: Python - Modify Strings
a = "Hello, World!"
print(a.upper())
mytext = 'Hello Zorld'
mytext = mytext.replace('Z', 'W')
print mytext,
a = "Hello, World!"
print(a.upper())