0

Hi,

I am having some trouble using the int function on an element of a list. My code currently looks like this.

```
for j in range(int(L)):
for k in range(int(Allele[j])):
alleleslocus_j.insert(k,loci.readline())
```

where Allele is a list of length L inputted by the user. I am having problems with the second line. When I run the program I get the error ValueError: invalid literal for int() with base 10: '['. I think that something about calling from the list is interacting with the int() syntax. I am wondering what exactly the problem is and how would I deal with it. Thanks!

Elise

PS This is a python program but I am compiling it in Sage