[Tutor] my first project: a multiplication trainer

Chris Fuller cfuller084 at thinkingplanet.net
Sun Mar 16 17:00:38 CET 2008


Oops, I based those examples on my initial solution, not the preferred one 
that preserved the questions.  Here is some better code.  They only use the 
shuffle method, and I've elaborated a bit on the basic solution, to 
illustrate some ideas for improvement.

Some things you might try as an exercise:  provide an escape command, rather 
than having to use ctrl-c; eliminate the symmetrical questions, i.e. only one 
of 3x5 and 5x3 need be presented.

Cheers
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mt1.py
Type: application/x-python
Size: 477 bytes
Desc: not available
Url : http://mail.python.org/pipermail/tutor/attachments/20080316/25aa4dd3/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mt2.py
Type: application/x-python
Size: 599 bytes
Desc: not available
Url : http://mail.python.org/pipermail/tutor/attachments/20080316/25aa4dd3/attachment-0001.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mt3.py
Type: application/x-python
Size: 870 bytes
Desc: not available
Url : http://mail.python.org/pipermail/tutor/attachments/20080316/25aa4dd3/attachment-0002.bin 


More information about the Tutor mailing list