You are viewing a single comment's thread. Return to all comments →
Width = len(str(bin(number))[2:]) for i in range(1, n+1): a=hex(i)[2:].title() print(str(i).rjust(Width, " "), oct(i)[2:].rjust(Width, " "), str(a).rjust(Width, " "), bin(i)[2:].rjust(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 →