def makeHashes(seq,k):
# k is the length of parts
subSeqs=[]
h=[]
lens=set()
for i in range(len(seq)-k+1):
h.append(hashlib.md5(seq[i:i+k].encode('utf-8')).hexdigest())
lens.add(k)
return(h,lens)
I am new to python. Why add k to set lens in each iteration since it is a fixed value?
I am new to python. Why add k to set lens in each iteration since it is a fixed value?