Sep-17-2018, 11:26 AM
(Sep-17-2018, 11:09 AM)Prince_Bhatia Wrote: i received this result:
apartmrentsandvilla,studio apatments,shops
i used :
mc = 'and'.join(m.split(',', 1))expected output:
apartments, villa, studio apartments and shops
Sorry, replace
split
with rsplit
Test everything in a Python shell (iPython, Azure Notebook, etc.)
- Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
- Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
- You posted a claim that something you did not test works? Be prepared to eat your hat.