Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (12 sloc) 336 Bytes
from collections import defaultdict,Counter
import operator
with open("rosalind_conv.txt","rU") as f:
S1=f.readline().split()
S2=f.readline().split()
S1=map(float,S1)
S2=map(float,S2)
s=defaultdict(int)
for x in S1:
for y in S2:
s[round(x-y,6)]+=1
sorted_x=sorted(s.iteritems(),key=operator.itemgetter(1))
You can’t perform that action at this time.