String Formatting

  • + 1 comment

    def print_formatted(number): # your code goes here for num in range(1,number + 1): print(f"{num:<1} {hex(num)[2:]:<1} {oct(num)[2:]:<1} {bin(num)[2:]:<1}")

    if name == 'main': n = int(input()) print_formatted(n)

        Note:: what is the issue with this output looks same why its not acceptable