WEBVTT 00:02.570 --> 00:12.220 Ten provides a kill method to store ten objects like list or dictionary etc. to a file and then get 00:12.220 --> 00:13.020 it back later. 00:14.520 --> 00:17.340 Let's create a program to see how to perform this task. 00:25.750 --> 00:27.400 We import go 00:32.650 --> 00:36.270 and recreate a list called Planet to 00:41.050 --> 00:42.920 works. 00:44.390 --> 00:45.020 Bar 00:47.480 --> 00:48.100 dir 01:00.290 --> 01:03.030 we deserve it. 01:03.760 --> 01:04.460 Open 01:12.930 --> 01:13.240 but 01:24.540 --> 01:34.080 here WB means write binary if B is not specified we will get an error message 01:36.830 --> 01:45.190 no girl has dumping method which we can use like this. 01:45.420 --> 01:45.900 Its 01:52.230 --> 01:52.970 planet but 01:57.120 --> 02:06.480 so dump planets into the planet find and again planet file closed 02:13.580 --> 02:19.400 and in the end we delete the planet list by saying the planets 02:25.000 --> 02:30.330 let's save this right. 02:36.580 --> 02:37.790 And run this program 02:44.000 --> 02:44.230 for 02:59.250 --> 03:03.070 so here planet don't be defined as created 03:09.890 --> 03:10.430 no 03:13.390 --> 03:14.710 let's see how to 03:18.080 --> 03:19.550 read back from the file. 03:26.380 --> 03:28.930 You can see Planet fight. 03:30.610 --> 03:30.760 But 03:41.180 --> 03:44.090 instead of right binary we say read binary 03:47.660 --> 03:55.040 planet data people to go door load 03:57.850 --> 03:58.860 planet but 04:06.900 --> 04:11.170 great planet data 04:14.610 --> 04:26.630 planet bio glucose so this load method will load this file into the planet data 04:30.410 --> 04:32.360 let's execute it in 04:35.510 --> 04:36.050 so here. 04:39.590 --> 04:47.650 That's how we perform pickle basically the idea of the goal is to use the object later or send them 04:47.650 --> 04:48.610 to someone else.