def binary(n, count=16, reverse=False):
 bits = [str(((n >> y) & 1)) for y in range((count - 1), (-1), (-1))]
 if reverse:
  bits.reverse()
 return ''.join(bits)

def binary ( n , count = 16 , reverse = False ) : bits = [ str ( ( ( n >> y ) & 1 ) ) for y in range ( ( count - 1 ) , ( - 1 ) , ( - 1 ) ) ] if reverse : bits . reverse ( ) return '' . join ( bits )
show binary digits of a number .