related to python

Dan Bishop danb_83 at yahoo.com
Thu May 22 01:00:30 EDT 2008


On May 21, 9:34 pm, "salil_reeves" <salil_ree... at yahoo.co.in> wrote:
> develop a function called standardise_phrase to convert
> the user's input to a standard form for subsequent processing. This
> involves:
> 1. removing all inter-word punctuation, which for our purposes is
> assumed to
> consist only of commas (`,'), full stops (`.'), exclamation marks
> (`!') or
> question marks (`?');
> 2. stripping away any leading and trailing blank spaces; and
> 3. replacing words in the user's input with ELIZA's preferred
> vocabulary.
> how it is done ??
> can anyone help me with it

Yes, but I'm only as willing to put as much effort into my answer as
you do into your thread titles.

help(str)



More information about the Python-list mailing list