+ 3

Can we change the any character of the string in python?

str="Hello moto" How to change it to Hello world?

9th Apr 2019, 4:46 PM
Usama Navid
Usama Navid - avatar
1 Odpowiedź
+ 4
a way is: str.replace("moto","world")
9th Apr 2019, 5:04 PM
Programmer