Why won’t this division end up the same result?

my_ascii = [chr(idx) for idx in range(256)] def generate_sequence(string): string_length = len(string) sequence_header = int(“”.join([str(1 if num in [idx for idx in [ord(char) for char in string]] else 0) for num in range(256)]), 2) “””a representation of the above generator””” # sequence_header = [0 for num in range(256)] # for char in string: # sequence_header[my_ascii.index(char)]…

Details