Answers for "hpow to replace one specific letter in python"

9

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
0

how to replace a single letter in a string python

text = "abcdefg";
text[1] = "Z";
Posted by: Guest on August-13-2021

Code answers related to "hpow to replace one specific letter in python"

Python Answers by Framework

Browse Popular Code Answers by Language