It doesn't make much sense to be building a dict of a bunch of keys all with None as the values. What you're going for is a dict of decimal numbers as keys and the corresponding hexadecimal numbers as values. The zip function can turn two lists into a list of two-tuples, and the dict constructor can turn a list of two-tuples into a dictionary. Try it that way :)