Hai... i am facing a problem while inserting values to an array. the programming language using is python. the problem is, i need to insert a value to array after performing a division. but every the value in array is always 0.0 . i am attaching the code here....
print len(extract_list1)
ratio1=range(len(extract_list1))
i=0
for word in extract_list1:
ratio1[i]=float(i/len(extract_list1))
print extract_list1[i],ratio1[i]
i+=1
ratio2=range(len(extract_list2))
i=0
for word in extract_list2:
ratio2[i]=float(i/len(extract_list2))
print extract_list2[i],ratio2[i]
i+=1