![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveRe: Replacing last comma in 'C1, C2, C3' with 'and' so that it reads 'C1, C2 and C3'
From: Brian van den Broek <bvande@po-box.mcgill.ca>
Date: Tue Jul 12 2005 - 09:03:44 CEST
Ric Da Force said unto the world upon 12/07/2005 02:43:
Hi Ric,
the rsplit method of strings should get you going:
>>> data = "the first bit, then the second, finally the third"
Best,
Brian vdB
|