Re: [Edu-sig] Permutations with Python

2015-11-23 Thread kirby urner
> > import unittest > from px_class import P > > class Test_Permutation(unittest.TestCase): > > def test_1(self): > """ > any p * ~p should give Identity > """ > p = P() # identity permutation > new_p = p.shuffle() > inv_p = ~new_p > self.

Re: [Edu-sig] Permutations with Python

2015-11-20 Thread kirby urner
On Wed, Nov 18, 2015 at 2:59 PM, kirby urner wrote: << SNIP >> > > I'm currently teaching a course in Python for the State of California. My > adult students join me in real time for 10 four hour segments. I've just > completed my fourth. We're coding classes (types) already, were looking at

[Edu-sig] Permutations with Python

2015-11-18 Thread kirby urner
My long history on this edu-sig listserv @ python.org has included an agenda around STEM reform. I've wanted to change US K-16 by displacing math track scientific calculators with true REPLs, then altering the math content based on the new freedom a REPL provides. Using the I-Python REPL: In [12