string in files

ibpet11 at gmail.com ibpet11 at gmail.com
Tue Dec 30 05:31:21 EST 2008


On Dec 30, 11:17 am, "Narasimhan Raghu-RBQG84" <RBQ... at 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.... at python.org
>
> [mailto:python-list-bounces+rbqg84=motorola.... at python.org] On Behalf Of
> ibpe... at gmail.com
> Sent: Tuesday, December 30, 2008 3:43 PM
> To: python-l... at python.org
> Subject: string in files
>
> guys i need info on how to call up different words in a line of a file
> using python example : file = 'this is a python coding group'
>
> i want to assign a xter to this, is, a, python , coding and group
>
> thanks
> --http://mail.python.org/mailman/listinfo/python-list
>
>

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.




More information about the Python-list mailing list