def spam_confidance():
d=open('gistfile1.py')
y=d.read()
spam=0
c=0
for line in y:
line=line.strip()
if line.startswith('from'):
var,value=line.split(':')
spam=spam+float(value)
c=c+1
return spam/c