import json
from pathlib import Path
r={'illustrative':True,'seven_perfect_one_missing_average':(7*5)/8,'percentage':100*(7*5)/(8*5),'equal_weights':{'A':(5+2)/2,'B':(3+4)/2},'technology_70pct':{'A':.7*5+.3*2,'B':.7*3+.3*4},'ownership_70pct':{'A':.3*5+.7*2,'B':.3*3+.7*4}}
Path(__file__).with_name('results.json').write_text(json.dumps(r,indent=2)+'\n')
