You are viewing a single comment's thread. Return to all comments →
user = int(input())
for i in range(1,user+1): print(i, end=" ") a = str(oct(i)) print(a[2:],end=" ") b = str(hex(i)) print(b[2:],end=" ") c = str(bin(i)) print(c[2:])
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 →
user = int(input())
for i in range(1,user+1): print(i, end=" ") a = str(oct(i)) print(a[2:],end=" ") b = str(hex(i)) print(b[2:],end=" ") c = str(bin(i)) print(c[2:])