related to python

Dan Bishop danb_83 at yahoo.com
Thu May 22 00:42:08 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




More information about the Python-list mailing list