I am trying to save some data from a dictionary in a terminal game I wrote, I've got the scores inside of a dictionary and I want to call those scores to write them on a note. I tried:
with open(path, 'w') as File:
File.write(f"player score is {str(score[\"Player\"])}\n"
f"computer score is {str(score[\"computer\"])}")
but this does not seem to work. How can I solve this problem without rewriting how I save scores?