1 00:00:00,470 --> 00:00:01,100 Or not. 2 00:00:01,130 --> 00:00:07,370 It is time for the dictionary now, actually the dictionary somehow it is the same as the list, but 3 00:00:07,370 --> 00:00:10,160 this time with that key value bill. 4 00:00:10,400 --> 00:00:15,470 So if I have this version of here and equal. 5 00:00:17,520 --> 00:00:19,560 Now, this time I would put bracket's. 6 00:00:20,560 --> 00:00:21,090 Embraces. 7 00:00:21,820 --> 00:00:22,720 OK, now here. 8 00:00:23,700 --> 00:00:29,190 I would want to keep valuable, so I would put the first thing, which is name. 9 00:00:30,220 --> 00:00:37,090 Then what on then, but the name of this guy or this person, which is my age, for example? 10 00:00:39,480 --> 00:00:47,350 And both the value, which is 30 or 31 or whatever right now, you can see if I want to bring this value. 11 00:00:47,370 --> 00:00:54,650 So I want to print the name of the variable, which is bar one, and then put the square brackets. 12 00:00:54,870 --> 00:00:58,580 But this time I will not put zero one to the list indexing. 13 00:00:58,590 --> 00:01:04,920 Now, this time I will put or provide that key value, OK, which is name or age or whatever. 14 00:01:05,220 --> 00:01:12,110 And of course, with brackets like this sort of double quotation, because this is a string. 15 00:01:12,630 --> 00:01:14,150 And now let's check this out. 16 00:01:14,160 --> 00:01:17,710 Actually, if I bring this, you can see that the value is wrong. 17 00:01:17,730 --> 00:01:19,140 Yeah, yeah. 18 00:01:19,140 --> 00:01:26,850 Actually, I forgot to put that list here, which means the name Mikage is 30 and I will print the. 19 00:01:28,770 --> 00:01:34,080 With name and let's see what will happen this time and see that it is. 20 00:01:34,740 --> 00:01:44,670 OK, now I want and I can put an imprint on the edge actually like this and like this. 21 00:01:44,670 --> 00:01:46,200 So let's check this out. 22 00:01:46,210 --> 00:01:47,860 Actually, it should be 30. 23 00:01:47,880 --> 00:01:50,190 Yeah, everything is working as expected. 24 00:01:50,550 --> 00:01:55,470 And by the way, actually, you can put dictionary values inside the list. 25 00:01:55,680 --> 00:01:57,450 So let's have a look here. 26 00:01:57,810 --> 00:02:02,400 So actually, the one this time, I don't need to be like this. 27 00:02:02,400 --> 00:02:03,660 I want it to be. 28 00:02:04,850 --> 00:02:12,080 Like this, like a list and inside the list, I will put some of the values like one. 29 00:02:13,070 --> 00:02:15,980 And the other video is to or whatever. 30 00:02:17,230 --> 00:02:24,690 And the third venue, I want to put it as a dictionary and here inside it, I will put this the the 31 00:02:24,730 --> 00:02:28,780 other thing, which is what we handle the name Mike. 32 00:02:30,340 --> 00:02:33,930 And don't forget to put that comma here. 33 00:02:35,660 --> 00:02:39,380 And the edge, but anything you want, which is dirty or whatever. 34 00:02:41,690 --> 00:02:45,740 And its print, Barwan, but this time I cannot do that because this is the list. 35 00:02:45,770 --> 00:02:47,260 This is not the dictionary. 36 00:02:48,020 --> 00:02:49,400 So I would put zero. 37 00:02:49,910 --> 00:02:56,760 This will bring the first one, which is one and one will bring the second to the index, which is two. 38 00:02:57,080 --> 00:02:59,800 And third, I would put three like this. 39 00:03:00,200 --> 00:03:01,690 So this would print the dictionary. 40 00:03:01,730 --> 00:03:03,030 So let's check this out. 41 00:03:03,050 --> 00:03:05,480 It is it is working or not. 42 00:03:06,740 --> 00:03:12,740 Yeah, you can see this is out of Windex because this is the three sorry, I forget it must be two. 43 00:03:13,370 --> 00:03:17,030 Yeah, you can see that the name is Mike and the age is 30. 44 00:03:17,270 --> 00:03:18,530 OK, so far so good. 45 00:03:19,010 --> 00:03:25,210 Now, what if I want not everything from that third index, which is the dictionary index. 46 00:03:25,220 --> 00:03:28,190 I want the name and or the edge. 47 00:03:28,640 --> 00:03:29,430 How to do that. 48 00:03:29,450 --> 00:03:31,130 Well, actually it is very simple. 49 00:03:31,280 --> 00:03:36,020 You can just open a new one and this time we will put their name. 50 00:03:39,220 --> 00:03:40,330 So if I return here. 51 00:03:41,980 --> 00:03:48,570 And it you can see that this time I bring out the name from the dictionary, which is the MC, OK, 52 00:03:48,730 --> 00:03:49,280 the value. 53 00:03:49,420 --> 00:03:51,490 So as you can see, key value bear. 54 00:03:51,940 --> 00:03:54,550 So name Mike eight thirty. 55 00:03:55,000 --> 00:03:58,300 And you can see from here, from the second. 56 00:03:58,300 --> 00:04:04,630 From the second, the third, the index zero one to the third index brand name. 57 00:04:04,930 --> 00:04:08,140 Don't print the whole dictionary so it will work 100 percent. 58 00:04:08,230 --> 00:04:09,700 OK, thanks for watching.