Re: string in files

2008-12-31 Thread Glauco
Steven D'Aprano ha scritto: On Tue, 30 Dec 2008 11:53:17 +0100, Glauco wrote: thanks brother i mean how do i particularly assign (u = this) (y = is) in the strings up there. i have been able to split strings with any character sign. If i'm not wrong

RE: string in files

2008-12-30 Thread Narasimhan Raghu-RBQG84
Simple solution: us result=yourString.split( ) and you get a list with all the words. -Original Message- From: python-list-bounces+rbqg84=motorola@python.org [mailto:python-list-bounces+rbqg84=motorola@python.org] On Behalf Of ibpe...@gmail.com Sent: Tuesday, December 30, 2008

Re: string in files

2008-12-30 Thread ibpet11
On Dec 30, 11:17 am, Narasimhan Raghu-RBQG84 rbq...@motorola.com wrote: Simple solution: us result=yourString.split( ) and you get a list with all the words. -Original Message- From: python-list-bounces+rbqg84=motorola@python.org

Re: string in files

2008-12-30 Thread Glauco
thanks brother i mean how do i particularly assign (u = this) (y = is) in the strings up there. i have been able to split strings with any character sign. If i'm not wrong this is simple with RE: In [1]: st = 'this is a python coding group' In [2]:

Re: string in files

2008-12-30 Thread Steve Holden
ibpe...@gmail.com wrote: On Dec 30, 11:17 am, Narasimhan Raghu-RBQG84 rbq...@motorola.com wrote: Simple solution: us result=yourString.split( ) and you get a list with all the words. -Original Message- From: python-list-bounces+rbqg84=motorola@python.org

Re: string in files

2008-12-30 Thread Lie Ryan
On Tue, 30 Dec 2008 11:53:17 +0100, Glauco wrote: thanks brother i mean how do i particularly assign (u = this) (y = is) in the strings up there. i have been able to split strings with any character sign. If i'm not wrong this is simple with

Re: string in files

2008-12-30 Thread Steven D'Aprano
On Tue, 30 Dec 2008 11:53:17 +0100, Glauco wrote: thanks brother i mean how do i particularly assign (u = this) (y = is) in the strings up there. i have been able to split strings with any character sign. If i'm not wrong this is simple with