DEV Community

dongdiri
dongdiri

Posted on

DAY22: Python day 30

worked on projects and with a deeper dive into tkinter for the past two days.

catching exceptions

  • try, except, else, finally keywords
  • helps prevent error
  • raise keyword: arbitrarily create error

Json(JavaScript Object Notation)
-json.dump() to add data. Mode should be "w"
-json.load() to read json file as dictionary. Mode should be "r"
-json.update() to update data we got hold of

Top comments (0)