Created
November 6, 2020 20:39
-
-
Save nimit2801/ff9e12c81e6309df1fdc4b434fbb540c to your computer and use it in GitHub Desktop.
Revisions
-
nimit2801 created this gist
Nov 6, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ import json with open("person.json", "r") as json_read: json_dict = json.load(json_read) name = input("enter your name: ") json_dict["name"] = name print(json_dict["name"]) person_dict = json_dict with open('person.json', 'w') as json_file: json.dump(person_dict, json_file) This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ {"name": "zombie", "languages": ["English", "Fench"], "married": true, "age": 32}