On Wed, Dec 24, 2008, bob gailer wrote:
> Emad Nawfal ( ) wrote:
>> Hi Tutors,
>> I want a function that acts like the startswith method, but can take
>> multiple prefixes. As an amateur programmer, I came up with this one,
>> and it works fine, but my experience tells me that my soluti
Emad Nawfal (عماد نوفل) wrote:
Hi Tutors,
I want a function that acts like the startswith method, but can take
multiple prefixes. As an amateur programmer, I came up with this one,
and it works fine, but my experience tells me that my solutions are
not always the best ones around. Can you plea
Hi Tutors,
I want a function that acts like the startswith method, but can take
multiple prefixes. As an amateur programmer, I came up with this one, and it
works fine, but my experience tells me that my solutions are not always the
best ones around. Can you please tell me what a better option migh
On Tue, 23 Dec 2008 19:17:33 -0800 (PST)
Ishan Puri wrote:
> Hello,
> I am a beginner with Python but I understand a lot of
> linguistics. I am a high school student. I needed help (from the
> beginning) making a word frequency chart that I can use to chart out
> the numerical frequencies of
Look at http://www.nltk.org/
Merry Christmas to all!
juh
--
Business: http://hasecke.com --- Private: http://hasecke.eu --- Blog:
http://www.sudelbuch.de --- History: www.generationenprojekt.de ---
Europe: www.wikitution.org
smime.p7s
Description: S/MIME cryptographic signature
On Wed, Dec 24, 2008 at 7:25 AM, Norman Khine wrote:
>
> Hello,
> I have difficulties in trying to stripping the following:
>
item_path = '/companies/company/news'
item_strip = item_path.strip('/companies')
item_strip
> 'y/new'
strip() doesn't do what you want. It removes any of th
Norman Khine wrote:
Hello,
I have difficulties in trying to stripping the following:
>>> item_path = '/companies/company/news'
>>> item_strip = item_path.strip('/companies')
>>> item_strip
'y/new'
>>>
I would like to return:
>>> item_strip
'/company/news'
Hello,
I have difficulties in trying to stripping the following:
>>> item_path = '/companies/company/news'
>>> item_strip = item_path.strip('/companies')
>>> item_strip
'y/new'
>>>
I would like to return:
>>> item_strip
'/company/news'
What is the best way to do this.
Thanks
___
"Ishan Puri" wrote
I am a high school student. I needed help (from the beginning)
making
a word frequency chart that I can use to chart out the numerical
frequencies
of words.
We are happy to help but as a rile we don;t write programs for you,
we help you write your own programs. (Teach a m