Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (13 sloc) 296 Bytes
protein_mass={}
with open("protein_masses.txt","rU") as f:
for line in f:
x=line.split()
protein_mass[x[0]]=float(x[1])
f.close()
with open("rosalind_prtm.txt","rU") as f:
s=f.read()
s=s.strip()
m=0.0
for x in s:
m+=protein_mass[x]
print m
You can’t perform that action at this time.