X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=grab_bag.py;h=a427256ca0f1b1530a0e757391dc027b1391099a;hb=5e241dc47e497c547463cecc07946ea6882835a7;hp=49582fb16e6fafe2688d952abccdfe6d098fff7b;hpb=41262fc75551d35bcc9979011078b0e5b4e7b36a;p=kiosk.git diff --git a/grab_bag.py b/grab_bag.py index 49582fb..a427256 100644 --- a/grab_bag.py +++ b/grab_bag.py @@ -1,5 +1,6 @@ import random + class grab_bag(object): def __init__(self): self.contents = set() @@ -24,6 +25,7 @@ class grab_bag(object): def size(self): return len(self.contents) -#x = grab_bag() -#x.add_all([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]) -#print x.subset(3) + +# x = grab_bag() +# x.add_all([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]) +# print x.subset(3)