- Here’s the best way to solve it.Solution
def DecToBin(n): return bin(n).replace("0b", "") def DecToHex(n): return hex(n).replace("0x","") def DecToOct(n): return oct(n); def BinToDec(n): # n must be a binary string return int(n, 2) def BinToHex(n): num = int(n, 2…
View the full answer
Transcribed image text:
{'qid': 5, 'category': 1, 'level': 2, 'problem': '1001101', 'description': 'bin', 'todo': nan} {'qid': 19, 'category": 2, 'level': 1, 'problem': 'tbd3', 'description': nan, 'todo': nan} {'qid': 8, 'category': 1, 'level': 3, 'problem': '11.101', 'description': 'bin', 'todo': nan} {}