def pretty_print(wordcount_dict, wordlength):
    """This prints out the wordcount index in order to mimic the R1.BAS output format.
    """
    output = ""
    e = 0
    for w in itertools.product(ALPHABET, repeat=wordlength):
        w = ''.join(w)
        try:
            output += "%3.10s%13s\n" % (e, wordcount_dict[w])
        except IndexError:
            output += "%s\t0\n"
        e += 1
    return output
dataset/ETHPy150Open ResilientScience/wot/wot/dimer.py/pretty_print/original