+ 1
Replace
g = "hi" g.replace("i","h") print (g) How to replace it ? 🤔
3 Respostas
+ 3
g = "hi"
g=g.replace("i","h")
print(g)
+ 2
Do you want its meaning.. ?
g.replace("i", "h") replaces i with h so g="hh" and next ("hh").replace("h","i") replaces h with i so output g = "ii"
+ 1
Jayakrishna🇮🇳 and 2 replace ?
g = g.replace("i","h").replace ("h","i")