.replit file python

37


with open("sample.json", "r") as file:
   sample = json.load(file)

sample["item"] = "Value"

with open("sample.json", "w") as file:
   json.dump(sample, file)


Comments

Submit
0 Comments