Answers for "python replace of string"

17

python replace letters in string

my_text = 'Aello world'
my_text = my_text.replace(my_text[0], 'H')
print (my_text)
Posted by: Guest on February-01-2021
1

python string replace variable

var = '{foo} {foo} {foo}'.format(foo = 'python you so crazy')
Posted by: Guest on December-07-2021

Code answers related to "python replace of string"

Python Answers by Framework

Browse Popular Code Answers by Language