Jun-22-2020, 03:08 PM
I have to operations for two ranges. I want to do someting like: for variable in [0, len(list)-1] do operation 1 and do operation 2 for the second value which is len(list) and in the end append all the found values:
Any help please ?
def reg_val_list_binary(s): r = [0, 0, 0, 254, 179, 0, 2, 0, 0, 0] v = [] w = [] for v in (0, len (list)-1): r = [int(bit) for bit in str( bin(v) )[2:].zfill(8)] [::-1] for v = len(list): r = [0] w.append(r) return wI obtain an empty list
Any help please ?