Untitled

Run Settings
LanguagePython
Language Version
Run Command
binary_list = [0, 0, 0, 0, 0, 1, 1, 10, 10, 11, 100, 100, 11, 10, 0] quaternary_list = [-11, -33, -22, -132, -220, -310] octal_list = [62, -220, -36, 5, 0, 1, -12] def list_to_decimal(lst, base): return [int(str(item), base) for item in lst] print(list_to_decimal(binary_list, 2)) print(list_to_decimal(quaternary_list, 4)) print(list_to_decimal(octal_list, 8))
Editor Settings
Theme
Key bindings
Full width
Lines