MonkeeSage wrote: > So far as unobfuscated versions go, how about the simple: > > def to_bin(x): > out = [] > while x > 0: > out.insert(0, str(x % 2)) > x = x / 2 > return ''.join(out) > > Regards, > Jordan > >>> to_bin(0) ''
6/10: try harder :) regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://holdenweb.blogspot.com Recent Ramblings http://del.icio.us/steve.holden -- http://mail.python.org/mailman/listinfo/python-list