I am trying to write elements from a list that I have created to an outfile using a for-loop with this code:
for j in range(int(Allele[i])): outfile.write(' allelelocus[j] * ')
However when I do this I just get a whole bunch of allelelocus[j] in my out file. I was wondering if there was any way to get my program to write the actual jth element of the list and not just allelelocus[j]. Thanks!