Search
Create an empty dictionary in Python:
solution = {}
The keys for this dictionary will be:
“a_0_dir”
“a_0_point”
“a_1_dir”
“a_1_point”
“sigma1”
“sigma2”
“p”
“p_pr”
“p_pr_pr”
Finally, save solution to hw05.json:
solution
hw05.json
import json with open("hw05.json", "w") as outfile: json.dump(solution, outfile)
hw05.zip
hw05.py
hw05.pdf