Answers for "python edit string variable"

1

python edit string variable

text = 'abcdefg'
new = list(text)
new[6] = 'W'
''.join(new)
Posted by: Guest on May-18-2020

Python Answers by Framework

Browse Popular Code Answers by Language