Skip to content

Instantly share code, notes, and snippets.

@sakti
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sakti/87915eec1a6c3481ab37 to your computer and use it in GitHub Desktop.
Save sakti/87915eec1a6c3481ab37 to your computer and use it in GitHub Desktop.
import time
n = 128
print 'decimal - binary - octal - hexadecimal'
print '======================================'
for i in range(n):
print '{0:04d} - {0:08b} - {0:08o} - {0:08x}'.format(i)
time.sleep(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment