how to replace maltipal char from string and substitute new char

Iranna Mathapati iranna.gani28 at gmail.com
Thu Oct 12 05:45:48 EDT 2017


Hi Team,


How to replace multipal char from string and substitute with new char with
one line code

Ex:

str = "9.0(3)X7(2) "  ===========>  9.0.3.X7.2

need to replace occurrence of '(',')' with dot(.) chars

output:

 9.0.3.X7.2


Thanks,



More information about the Python-list mailing list