You are viewing a single comment's thread. Return to all comments →
This is all about formatting so...
n = int(raw_input()) width = len("{0:b}".format(n)) for i in xrange(1,n+1): print "{0:{width}d} {0:{width}o} {0:{width}X} {0:{width}b}".format(i, width=width)
Seems like cookies are disabled on this browser, please enable them to open this website
String Formatting
You are viewing a single comment's thread. Return to all comments →
This is all about formatting so...