WEBVTT 00:02.180 --> 00:09.020 Dictionary is a data structure which allows us to store and retrieve values using keys. 00:10.300 --> 00:15.620 Note that the key must be unique and all is off to have a string. 00:16.030 --> 00:19.560 Whereas the value can be of any type. 00:19.630 --> 00:25.040 Let's see how to define and use a dictionary. 00:25.260 --> 00:32.960 Both equal to curly braces here and give. 00:33.870 --> 00:36.260 E same word. 00:39.110 --> 00:42.770 And the value of the scheme would be 1 2 3 4. 00:45.110 --> 00:49.290 You can define as many keys and words as we want. 00:51.040 --> 00:55.280 Let's say for example Eric 678 00:59.430 --> 00:59.790 John 01:04.130 --> 01:05.890 workforce 5 6 01:15.430 --> 01:16.410 6 vertical 2 01:23.040 --> 01:33.400 we can retrieve well used from dictionary by specifying the key if we want to print. 01:37.400 --> 01:42.740 That number is. 01:46.590 --> 01:46.860 But 01:53.820 --> 02:04.190 to delete an item from dictionary we use data function set DL dictionary name and key 02:24.580 --> 02:24.920 print 02:29.650 --> 02:30.710 book. 02:31.050 --> 02:32.990 So now we have 3 instead of 02:37.680 --> 02:49.270 added value in the dictionary we say book we specify key say over 02:52.630 --> 02:54.850 equal to then the value of the ski 03:01.190 --> 03:08.080 we can I trade or dictionary using loops put down before 03:11.870 --> 03:12.340 contact 03:15.300 --> 03:21.530 rule book items ABC brand 03:24.820 --> 03:27.000 can block the 03:35.490 --> 03:39.440 format name calling 03:44.430 --> 03:44.870 story 03:52.920 --> 03:54.530 that object has no 03:57.240 --> 04:00.610 sorry but this early. 04:01.250 --> 04:18.820 Item safe items. 04:18.910 --> 04:22.200 Well that's the dictionary data structure. 04:22.220 --> 04:24.050 Next we'll see said.