Dan Zwell wrote: > You want an instance method. Just declare it as > def self(r) > and not > def self.nPr(r) Oops. I meant: def nPr(r) Good luck. Dan