practice programs

Raymond Hettinger vze4rx4y at
Sat Jan 4 02:20:38 CET 2003

From: "Tupoi" <EDB30 at>
> any ideas for programms a begginer might try writing to help hone his

A spell checker might be useful ;)

Some classic exercises are:
-- prime number generator (3,5,7,11, and 13 are prime; 9 is an anomaly)
-- Markov sentence generation
-- mail merge (table of fields inserted in to text with place holders)
-- key word in context (search google for KWIC index)
-- shuffle a deck and evaluate a blackjack hand
-- use introspection and metaclasses to write a native Python compiler
(okay, maybe not).

Raymond Hettinger

More information about the Python-list mailing list