Ad
  • Custom User Avatar

    You need to format your code properly with 4 backticks and the language
    ````language
    code here
    ````
    for it to be comprehensible. Copy pasting your code prints on one line and from the looks of it its python, and knowing the indentation is extremely important.

    It seems like you are trying to parse the hex number, converting every 2 "digits" into a binary number, padding it with zeros to fit the 8 bit sized segment, and attaching "\n" to the end until youve done this for every pair of digits in the hex number.

    The prompt wants you to convert the ENTIRE hex number to binary then pad, not every 2 digits. Not sure if I can say more without giving away the answer.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution