quite simply,
numpart=[0.0,0.0,0.0,0.0]
...
numpart += n
you are trying to add n to a list which is numpart, it is not designed to work like that, you may want to look at .append(), which numpart.append(n)
would add n to the end of the list or
for number in range(0, numpart):
numpart[number] += n
depending on which you need also:
ncc=numpart/denpart
will also not work as they are lists
again, using the same technique as i just used for adding n to each entry in the list will work there, just using ncc[number] = numpart[number]/denpart[number]
instead