0
how can I delete something from a string?
how can I delete "?" from "hello?world" ?
2 Respuestas
+ 5
Strings are immutable, but not variables... you can simply reaffect a new string value to the same variable ( without "have to create a new string" supposing / meaning a new variable ^^ ):
str = "hello?world"
str = str.replace("?", " ")
print(str)
0
it worked!. thanks