[Solved] python program to store a specific string from a file and store it in a variable
[ad_1] First off In your example json file you have inconsistent use of quotation marks, chose ‘ or ” and stick to it. Code import json data = json.load(open(“file.json”)) # this is the variable you are after variable = data[“my_id”] [ad_2] solved python program to store a specific string from a file and store it … Read more