×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Python
Posted by: Jason Kumpf
Added: Jun 4, 2013 2:42 AM
Views: 19
Tags: no tags
Python 1 liner to represent largest number by 8 bits.
  1. print '\n'.join("%i Byte = %i Bit = largest number: %i" % (j, j*8, 256**j-1) for j in (1 << i for i in xrange(8)))