1 00:00:00,420 --> 00:00:03,960 It is we do we are discussing by at its implementation. 2 00:00:06,140 --> 00:00:09,320 That is a fundamental part of most programming languages. 3 00:00:09,590 --> 00:00:16,430 And it is the collection of elements of the same derivate as example, you can go for any of I.A., 4 00:00:16,490 --> 00:00:17,870 any of strings and so on. 5 00:00:18,560 --> 00:00:23,090 So here we are having the mythos which will be operated on this at IS. 6 00:00:23,390 --> 00:00:26,480 And here we are having the respective functions and descriptions. 7 00:00:26,780 --> 00:00:33,710 So happened to add element to the end of the list, extend to extend all elements of a list. 8 00:00:33,950 --> 00:00:38,090 To add to the list, we're having this insert two in southern element. 9 00:00:38,330 --> 00:00:41,260 At the end of that index given. 10 00:00:41,630 --> 00:00:50,240 So remove to remove an element from the list sapol to remove elements return element at the given index. 11 00:00:50,480 --> 00:00:56,880 So that means in case a pop to remove elements and return that element which has been removed from that 12 00:00:56,900 --> 00:00:58,070 given index. 13 00:00:58,200 --> 00:01:01,970 We're having clear to remove all elements from the list. 14 00:01:02,090 --> 00:01:03,500 So the list will become empty. 15 00:01:03,530 --> 00:01:04,760 That will become empty. 16 00:01:05,210 --> 00:01:10,280 Next one is the next one is the index to return the index of the first masked element. 17 00:01:10,550 --> 00:01:12,470 So that is useful for the searching. 18 00:01:12,860 --> 00:01:17,750 When having this count to count the number of elements passed to an argument. 19 00:01:18,170 --> 00:01:23,600 So next one is a shot to short the elements in the ascending order by default. 20 00:01:23,990 --> 00:01:27,740 Next one is a divorce to reverse order elements in a list. 21 00:01:27,920 --> 00:01:31,350 So the order of elements, whatever will be there initially. 22 00:01:31,430 --> 00:01:35,600 That will be reversed in after an application of this divorce method. 23 00:01:35,900 --> 00:01:40,060 Next one is a copy to return a copy of the elements in l'Est. 24 00:01:40,340 --> 00:01:43,760 So these are the different methods and the respective functions we have discussed. 25 00:01:44,030 --> 00:01:47,260 So I think it would be better if you go for a demonstration. 26 00:01:47,630 --> 00:01:54,770 There will be executing our python codes to show you that how this edit can be used in our Python programming. 27 00:01:55,780 --> 00:02:02,150 It is our fundamental part of most programming languages and it is the collection of elements of a single 28 00:02:02,150 --> 00:02:02,780 data type. 29 00:02:03,200 --> 00:02:09,500 And as example, you can consider adding office elements like string adding of integers, ADR float 30 00:02:09,590 --> 00:02:10,070 and so on. 31 00:02:10,650 --> 00:02:10,880 How? 32 00:02:10,890 --> 00:02:13,970 But in Python there is no native added data structure. 33 00:02:14,390 --> 00:02:17,620 So you use Python least instead of an eddy. 34 00:02:18,050 --> 00:02:24,790 But if you want to create a real at a real Addie's in about Python, we need two used up PIs, Eddie. 35 00:02:25,430 --> 00:02:26,510 That is a data structure. 36 00:02:26,570 --> 00:02:28,800 We are having a number num pi model. 37 00:02:29,270 --> 00:02:33,050 So for mathematical problems, non-pay at it would be more efficient. 38 00:02:33,500 --> 00:02:40,340 So unlike at IS, a single list can store elements of any data types and does everything and add it 39 00:02:40,430 --> 00:02:40,880 does. 40 00:02:41,150 --> 00:02:46,970 So we can store an integer, a flawed and a string instead of the insta inside the simplest. 41 00:02:47,390 --> 00:02:49,610 So it is more flexible to work with. 42 00:02:50,090 --> 00:02:55,880 So let us go for what they added descriptions and the detailing about this add handling. 43 00:02:56,210 --> 00:03:00,470 And Aquiles, we are going to discuss how to create one A in about Biton. 44 00:03:00,980 --> 00:03:04,470 So here you have defined one Eddie so definition and declaring NRD. 45 00:03:04,940 --> 00:03:06,630 So these are the setup elements. 46 00:03:06,650 --> 00:03:10,490 It is having and print Hayata so it will produce output like this one. 47 00:03:11,000 --> 00:03:15,020 So now if I want to access our EDDI elements, we can use the index. 48 00:03:15,200 --> 00:03:22,040 The first element we have to index Zillo so aira zero will print 10, airat one will print 20 here. 49 00:03:22,430 --> 00:03:24,680 So we are at two, will print thirty here. 50 00:03:25,230 --> 00:03:27,410 And here you are having this a R minus one. 51 00:03:27,430 --> 00:03:29,660 That means the last element will be printed. 52 00:03:29,690 --> 00:03:30,740 That is our 50. 53 00:03:31,010 --> 00:03:32,870 But having this error minus two. 54 00:03:33,110 --> 00:03:34,150 So that is minus one. 55 00:03:34,220 --> 00:03:35,270 It is my minus two. 56 00:03:35,450 --> 00:03:36,920 So 40 will get printed. 57 00:03:37,100 --> 00:03:39,650 So here we are using negative indexing. 58 00:03:40,490 --> 00:03:42,770 So now let us go for another edit here. 59 00:03:43,040 --> 00:03:46,790 So here all dismembers, all this add elements are of the type string. 60 00:03:47,210 --> 00:03:50,120 So if we print these brands, we are getting the output like this one. 61 00:03:50,690 --> 00:03:55,520 So finding the length of the edit, we are having the method that is the inbuilt method that is our 62 00:03:55,790 --> 00:03:56,420 line here. 63 00:03:56,690 --> 00:03:57,890 So Lynn brands. 64 00:03:58,040 --> 00:04:03,500 So to print it to return five year because we are having one, two, three, four, five elements. 65 00:04:03,950 --> 00:04:07,570 So if you print a number of brands, we are getting here five as Upwood. 66 00:04:08,060 --> 00:04:11,210 We could also add some element using that method append. 67 00:04:11,540 --> 00:04:13,480 So brands start apon Intel. 68 00:04:13,640 --> 00:04:20,480 So if we go on printing brands, I'm getting this intel as a last element which has got appended to 69 00:04:20,480 --> 00:04:21,840 the existing it. 70 00:04:22,070 --> 00:04:23,420 That is of a Brant's. 71 00:04:23,840 --> 00:04:26,290 So know how to remove elements from an eddy. 72 00:04:26,660 --> 00:04:30,980 So to remove elements where having the method like remove we are having the method like pop. 73 00:04:31,700 --> 00:04:34,640 So here you can find that we are having this colors. 74 00:04:34,820 --> 00:04:35,690 It is different there. 75 00:04:35,720 --> 00:04:37,580 So let me bring the colors here. 76 00:04:37,610 --> 00:04:38,900 So when for preened. 77 00:04:40,430 --> 00:04:40,980 Colors. 78 00:04:41,280 --> 00:04:41,490 OK. 79 00:04:41,880 --> 00:04:46,530 So now if I print this colors this particular area, we're getting the outcome like this one. 80 00:04:46,560 --> 00:04:48,560 So that is a there's a colors I printed. 81 00:04:49,050 --> 00:04:55,440 So now if you go for this dale colored for if you go for this dale color for then after reviewing this 82 00:04:55,440 --> 00:04:58,830 dale color for if I print that outcome will be this one. 83 00:04:58,890 --> 00:05:00,540 So that is a colorful means. 84 00:05:00,540 --> 00:05:03,540 We're having the zero one, two, three, four. 85 00:05:03,720 --> 00:05:07,700 So yellow will get deleted because here we have mentioned the index as four. 86 00:05:08,190 --> 00:05:10,830 So now we are having this colors dot remove blue. 87 00:05:11,100 --> 00:05:14,520 So here I'm just mentioning directly their respective date items. 88 00:05:14,530 --> 00:05:20,310 So here we are mentioning that the date items, so that is of a blue to blue is the member of this particular 89 00:05:20,340 --> 00:05:20,620 Eddie. 90 00:05:20,880 --> 00:05:22,890 So blue is going to get deleted. 91 00:05:22,920 --> 00:05:25,500 So you can find that the blue has got deleted here. 92 00:05:26,010 --> 00:05:28,410 So now we are having this colors pop three. 93 00:05:28,740 --> 00:05:32,610 So now he had were mentioning that radically, the index we are mentioning. 94 00:05:32,970 --> 00:05:33,810 So you can find here. 95 00:05:33,870 --> 00:05:34,590 There is zero. 96 00:05:34,680 --> 00:05:35,970 One, two, three. 97 00:05:36,000 --> 00:05:37,470 So orange, you'll get deleted. 98 00:05:37,770 --> 00:05:42,600 And in this way, I'm getting there is reduced number of elements of this, Eddie, getting printed 99 00:05:42,630 --> 00:05:43,800 using print colors. 100 00:05:44,250 --> 00:05:47,970 So in this way, we can remove items from foreman Eddie. 101 00:05:49,380 --> 00:05:53,190 So now we are going for this modifying elements of an Eddie using indexing. 102 00:05:53,790 --> 00:05:57,230 So fruits, apple, banana, mango, grapes and orange. 103 00:05:57,230 --> 00:05:57,990 And having this one. 104 00:05:58,260 --> 00:05:59,340 So fruits one. 105 00:05:59,400 --> 00:06:02,010 So I'm just assigning pineapple to that. 106 00:06:02,040 --> 00:06:03,120 Now what is outcome? 107 00:06:03,390 --> 00:06:04,700 So let me go for the print. 108 00:06:07,310 --> 00:06:09,170 So, no, let me go for the execution. 109 00:06:09,200 --> 00:06:11,210 You can find that at first, this particular. 110 00:06:11,530 --> 00:06:15,110 And he has got printed now fruits one one minced zero one. 111 00:06:15,140 --> 00:06:17,440 So Banana will be the Best Buy pineapple. 112 00:06:17,450 --> 00:06:18,780 So he really does get replaced. 113 00:06:19,250 --> 00:06:24,530 Now, fruits minus one, minus one means the orange is the last one will get replaced by this guava. 114 00:06:24,650 --> 00:06:27,950 So we are getting the updated content of this added fruits. 115 00:06:28,460 --> 00:06:31,250 So now we are going for the concatenation of two. 116 00:06:31,250 --> 00:06:32,810 Add is using the plass operator. 117 00:06:32,870 --> 00:06:34,020 So concat is a goal. 118 00:06:34,150 --> 00:06:35,480 Two, one, two, three. 119 00:06:35,660 --> 00:06:36,470 And then concat. 120 00:06:36,500 --> 00:06:38,390 Plus four, five, six. 121 00:06:38,570 --> 00:06:40,860 So now you're going to print on concat. 122 00:06:41,300 --> 00:06:43,820 So Nowotny Pinkel for the printing head also. 123 00:06:45,800 --> 00:06:50,420 So if I go on executing, we can find that at first we having this one, two, three. 124 00:06:50,570 --> 00:06:53,700 And then after concatenation, I'm getting this one, two, three. 125 00:06:53,720 --> 00:06:54,050 Why? 126 00:06:54,320 --> 00:06:56,330 Because I didn't assign this concat. 127 00:06:56,780 --> 00:07:01,240 I didn't assign this this concatenated items in the into. 128 00:07:01,820 --> 00:07:02,840 That is available. 129 00:07:02,850 --> 00:07:03,440 So not let. 130 00:07:03,530 --> 00:07:04,820 Let us write this one. 131 00:07:04,910 --> 00:07:06,670 So let me do some changes here. 132 00:07:12,740 --> 00:07:14,660 So now if I execute, I can find that. 133 00:07:14,990 --> 00:07:19,640 So now this concat has got abetted by concat plus four, five, six. 134 00:07:19,820 --> 00:07:24,950 So this blast is actually denoting the operator to do the concatenation between two. 135 00:07:25,000 --> 00:07:25,370 It is. 136 00:07:25,580 --> 00:07:29,980 So now when you are printing this concatenated at eight, we're getting this one, two, three, four, 137 00:07:29,980 --> 00:07:30,550 five, six. 138 00:07:30,980 --> 00:07:34,240 So now we are going for the repeating elements in an array. 139 00:07:35,720 --> 00:07:37,040 So let us go for this. 140 00:07:37,040 --> 00:07:42,440 Repeat A and then repeat is Ziegel to repeat, start five and then print repeat. 141 00:07:42,860 --> 00:07:43,970 So now what is the outcome? 142 00:07:44,030 --> 00:07:45,200 We can go for this print. 143 00:07:48,190 --> 00:07:49,570 So just executing the same. 144 00:07:50,590 --> 00:07:53,200 So, Atlas, is there a next time repeat? 145 00:07:53,390 --> 00:07:57,380 Is the goal to rebuild Star five so this A has got repeated four five times. 146 00:07:58,370 --> 00:08:01,160 OK, so now we are having this bear, this fruits. 147 00:08:01,520 --> 00:08:03,650 So we're having the set of elements are the. 148 00:08:07,400 --> 00:08:10,870 So if I go on executing this, so at first we're getting this fruits. 149 00:08:11,000 --> 00:08:12,760 This particular area has got printed. 150 00:08:13,250 --> 00:08:14,450 Now print fruits. 151 00:08:14,720 --> 00:08:16,370 One colon for all of us. 152 00:08:16,370 --> 00:08:21,950 Remember, the starting index will be inclusive and the ending index will be all as exclusive. 153 00:08:22,280 --> 00:08:23,360 So that is the index number. 154 00:08:23,360 --> 00:08:25,010 Gedo index number one is this one. 155 00:08:25,250 --> 00:08:26,630 So one, two, three. 156 00:08:26,660 --> 00:08:29,720 So I'm expecting Benan, a mango and a grape should get printed. 157 00:08:30,050 --> 00:08:31,580 Is the airport printed accordingly? 158 00:08:31,940 --> 00:08:33,620 Here, the starting index is missing. 159 00:08:33,650 --> 00:08:35,840 So will because it will be considered a zero. 160 00:08:36,170 --> 00:08:37,190 So from Apple. 161 00:08:37,370 --> 00:08:41,630 So three Mincy to put it up to the index number two, because three will be exclusive. 162 00:08:41,990 --> 00:08:43,370 So zero one two. 163 00:08:43,400 --> 00:08:47,390 So Apple, Banana and Mengel should get extracted and should get printed. 164 00:08:47,660 --> 00:08:49,670 Apple, banana, mango have got printed. 165 00:08:50,150 --> 00:08:54,110 So now to start from this minus four, it is start from this minus four. 166 00:08:54,410 --> 00:08:55,250 So minus one. 167 00:08:55,310 --> 00:08:56,030 Minus two. 168 00:08:56,060 --> 00:08:56,780 Minus three. 169 00:08:56,840 --> 00:08:58,490 And here we are having this minus four. 170 00:08:58,880 --> 00:09:00,730 And the ending index has not been mentioned. 171 00:09:00,740 --> 00:09:05,270 So it will go printing up to the last elements of banana, mango, grip's and orange. 172 00:09:05,630 --> 00:09:06,500 They have what printed. 173 00:09:06,890 --> 00:09:09,680 So here you are having this minus minus three, two, minus one. 174 00:09:09,980 --> 00:09:10,730 So minus one. 175 00:09:10,760 --> 00:09:11,330 Minus two. 176 00:09:11,390 --> 00:09:12,050 Minus three. 177 00:09:12,080 --> 00:09:12,770 I'm getting here. 178 00:09:12,850 --> 00:09:17,210 Mengel and minus one will be all is exclusive because it is the stop index. 179 00:09:17,510 --> 00:09:19,820 So that's why it'll print up to minus two. 180 00:09:19,940 --> 00:09:20,840 That is of a grip's. 181 00:09:21,080 --> 00:09:23,930 So in this way we can have the slicing often, Eddie. 182 00:09:25,460 --> 00:09:27,390 OK, so now we're going for the next one. 183 00:09:31,710 --> 00:09:34,510 So here we're going to have our Mike Dee Dimensional Eddie. 184 00:09:35,070 --> 00:09:38,490 So it goes on multi-dimensional, Larry, you can find that where it be a defining one. 185 00:09:38,520 --> 00:09:38,850 Eddie. 186 00:09:39,330 --> 00:09:43,710 So he had the first element is another Eddie that is gone consisting of one and two. 187 00:09:43,720 --> 00:09:47,880 The second element is also is another Eddie consisting of three and four and so on. 188 00:09:48,270 --> 00:09:52,350 So if you go on print this multidimensional edit, you are getting the outcome like this. 189 00:09:52,800 --> 00:09:58,420 But if you bring this multidimensional zero, that means this one to this one to this ad, it will get 190 00:09:58,420 --> 00:09:59,530 printed accordingly. 191 00:09:59,600 --> 00:10:00,780 Three minutes zero. 192 00:10:00,990 --> 00:10:02,920 One, two, three, four. 193 00:10:02,970 --> 00:10:04,530 The Simenon eight will get printed. 194 00:10:05,100 --> 00:10:07,630 So multidimensional at eight to come out one. 195 00:10:07,940 --> 00:10:08,550 So two. 196 00:10:08,640 --> 00:10:09,180 And one. 197 00:10:09,450 --> 00:10:12,350 They are included within the square brackets individually. 198 00:10:12,750 --> 00:10:13,710 So two means zero. 199 00:10:13,800 --> 00:10:14,610 One, two. 200 00:10:14,640 --> 00:10:17,450 So two means this one and one means zero one. 201 00:10:17,490 --> 00:10:18,780 So six will get printed. 202 00:10:19,110 --> 00:10:20,700 Similarly for three comma zero. 203 00:10:21,090 --> 00:10:22,270 So it goes up three Angelo. 204 00:10:22,350 --> 00:10:25,170 They are individually enclosed within the square brackets. 205 00:10:25,470 --> 00:10:26,040 So zero. 206 00:10:26,100 --> 00:10:27,040 One, two, three. 207 00:10:27,060 --> 00:10:28,620 That means this particular element. 208 00:10:28,950 --> 00:10:30,270 And it's a 081. 209 00:10:30,330 --> 00:10:32,250 So seven will get printed here. 210 00:10:32,700 --> 00:10:38,760 So in this way, you have shown you that how to handle ADD is in about Python programming with demonstration, 211 00:10:38,850 --> 00:10:39,690 an example. 212 00:10:40,230 --> 00:10:41,370 Thanks for watching this video.