1) There is not a built in function for combinations, but there are modules that people have written for python that provide that functionality. Google for 'Python combination permutation' and you should find code examples.
2) If you have a list of items (set), then len()will return the number of elements.
[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.