A little amusing Python program
Manoj Plakal
plakal-nospam at nospam-cs.wisc.edu
Thu Oct 4 00:44:42 EDT 2001
Cool! I can think of at least one "useful"
application: automating cheating for
Who Wants to be a Millionaire. As it is,
when people phone their friend, you
can sometimes hear some frenzied typing
over the line ...
Manoj
Max M wrote:
> I have written this little Python program that usually raises a few
> eyebrows. It answer multiple choice questions.
>
> It is very simple. ie.
>
> question = 'What is Python'
> choices = (
> 'a programming language',
> 'a tv series',
> 'a snake'
> )
> It then queries google with:
>
> "What is Python a programming language"
> "What is Python a tv series"
> "What is Python a snake"
>
> and chooses the result that gets the most hits.
>
> Simple, but far better then random.
>
> Well it's not of much use, but kind of fun and very low budget AI ...
More information about the Python-list
mailing list