Sep-17-2018, 10:10 AM
(This post was last modified: Sep-17-2018, 10:10 AM by Prince_Bhatia.)
Hi,
I have a text written like this :
apartments, villa, studio apartments, shops
i want to replace last comma with "and"
expected output:
apartments, villa, studio apartments and shops
how can i do this?i tried this:
I have a text written like this :
apartments, villa, studio apartments, shops
i want to replace last comma with "and"
expected output:
apartments, villa, studio apartments and shops
how can i do this?i tried this:
m = apartments, villa, studio apartments, shops getreplaced = m.replace(","," and ")but dont know what to do next