import restr = "coworker in my company are not so co operative. silly co"res = re.sub(r'(?:\sco\s|\sco$)', ' ', str)print(res)
Standard input is empty
coworker in my company are not so operative. silly
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!