1
00:00:00,870 --> 00:00:08,580
So there is an issue that we're going to take a look at this list, so these lists are generated by

2
00:00:08,580 --> 00:00:12,500
square brackets and these are used to store some elements in the prison.

3
00:00:12,840 --> 00:00:16,350
So these are used to store some inventory.

4
00:00:16,650 --> 00:00:25,050
Subject marks are groceries or some kind of things that come in one particular category are can also

5
00:00:25,320 --> 00:00:26,680
store different categories.

6
00:00:27,030 --> 00:00:34,320
So if you want to store books, you can find books is equal to and the available books in that market

7
00:00:34,320 --> 00:00:35,310
are in your store.

8
00:00:35,550 --> 00:00:42,510
So this is, uh, helpful for long items and we have more than 10 or 20 items.

9
00:00:42,510 --> 00:00:50,670
You can just prepare one list and you got to refer to the same category and two different elements in

10
00:00:50,670 --> 00:00:50,970
the list.

11
00:00:50,980 --> 00:00:52,100
I want to do list.

12
00:00:52,230 --> 00:00:53,850
I want to sell one.

13
00:00:53,850 --> 00:00:56,340
And I need to put the comma between the elements.

14
00:00:56,340 --> 00:00:59,330
One, two, three, four, five.

15
00:01:03,350 --> 00:01:10,430
So this is my list, and in the same way as we have access to the are the fingers in the index, we

16
00:01:10,430 --> 00:01:13,220
can access that each and every element using this index.

17
00:01:13,430 --> 00:01:19,090
So before that, first let me point out this URL and we'll see what output is look like.

18
00:01:22,320 --> 00:01:27,720
And you can see it as acceptable in the presentation of the pigmies type of.

19
00:01:34,030 --> 00:01:39,550
And as you can see, it's this class list, so you can also define the length of this list, which is

20
00:01:39,550 --> 00:01:42,750
the fight, and then get the answer right it.

21
00:01:43,090 --> 00:01:45,480
So the different number of elements in the list.

22
00:01:48,070 --> 00:01:51,000
As you can see, there are final agreements, we got the answer right.

23
00:01:56,160 --> 00:02:02,640
Now, this can also store some multiple batteries, so we have stored in just one, two.

24
00:02:03,420 --> 00:02:07,330
And now if I put the comma and I can also store my name.

25
00:02:07,830 --> 00:02:09,000
So here's the thing.

26
00:02:09,000 --> 00:02:16,700
And I can also say so you can also store multiple data in the same list if you're coming from another

27
00:02:16,710 --> 00:02:17,660
programming language.

28
00:02:17,850 --> 00:02:24,180
And this was discovered it and you can exclude only one data type in that area to declare an array of

29
00:02:24,180 --> 00:02:29,930
the type you can only store the integer elements in the garage door string are full.

30
00:02:31,320 --> 00:02:35,340
So let me go ahead and print this list and see what it looks like.

31
00:02:37,600 --> 00:02:47,710
And there you can see, uh, Naggar Ansari has been added there, and I told you, you can access the

32
00:02:47,710 --> 00:02:51,090
elements using this index, the same square brackets.

33
00:02:51,790 --> 00:02:55,020
Are you to set it up during the first element?

34
00:03:00,160 --> 00:03:06,880
And there is he got the one for I love to get the third element, which is three.

35
00:03:09,820 --> 00:03:17,520
And if I say I love minus one, you get the last element, you say, and you can also reverse the rift.

36
00:03:17,530 --> 00:03:27,080
Using the same method is to use to use from minus one to minus this one for this week.

37
00:03:27,300 --> 00:03:33,550
You can see the result has been reversed, consistent and Avani at the last.

38
00:03:36,120 --> 00:03:39,060
And there is also a method called reverse.

39
00:03:40,760 --> 00:03:47,180
And as you can see, how temporary that this record has been, uh, telling me, there are these methods

40
00:03:47,180 --> 00:03:51,680
available with, uh, starting with Ari, let me reverse.

41
00:03:53,880 --> 00:03:59,790
And there is no argument here for this by producer on this, so we have got.

42
00:04:00,070 --> 00:04:02,280
So what's this actually doing?

43
00:04:02,310 --> 00:04:09,270
Is it a particular matter which will, uh, modify the same list?

44
00:04:09,510 --> 00:04:15,290
So, you know, to call this as a separate function and then you need to Prenter.

45
00:04:17,990 --> 00:04:20,390
So as you can see now that it has been dorsa.

46
00:04:23,970 --> 00:04:31,380
So you can add some data to the list, uh, you can happen to the data at their event generally happens

47
00:04:31,380 --> 00:04:32,670
at the end of that list.

48
00:04:32,940 --> 00:04:35,040
That's certainly a no.

49
00:04:35,040 --> 00:04:37,960
Let's go ahead and put the whole list.

50
00:04:41,380 --> 00:04:48,370
As you can see, Nicole got a winner at the last hour, though, she can also insert at this particular

51
00:04:48,370 --> 00:04:49,000
index.

52
00:04:51,360 --> 00:05:00,240
And needless to say, I want to open it starting and then I want to specify the element I want to insert.

53
00:05:02,230 --> 00:05:07,340
Now, as you can see, Nicole has been seated at the jury, that is the first position and then the

54
00:05:07,340 --> 00:05:09,430
remaining elements have been shifted reports.

55
00:05:13,470 --> 00:05:14,550
So you can also.

56
00:05:21,490 --> 00:05:27,360
Or you can also get the index number out of the element Naggar.

57
00:05:28,960 --> 00:05:32,760
So this is the know one, two, three, four, fifth index.

58
00:05:32,770 --> 00:05:35,770
So you get down sort of like sorry.

59
00:05:37,950 --> 00:05:46,590
And you can also assign this value to a variable that Jesse and I'm going to print this.

60
00:05:50,550 --> 00:05:51,840
So the dancer fight.

61
00:05:56,860 --> 00:06:03,520
Now, you can also count the elements of this, if I have somebody to various.

62
00:06:05,650 --> 00:06:13,930
I can just say I lost count of I need to specify the value which I want to find the to.

63
00:06:14,350 --> 00:06:17,190
How many how many number of times it has been reported.

64
00:06:18,100 --> 00:06:27,050
So because there are two Nargus in this list and we also see the string concatenation that said this

65
00:06:27,050 --> 00:06:28,770
is one, this one has reached one.

66
00:06:29,290 --> 00:06:31,780
And I said this has reached total.

67
00:06:32,590 --> 00:06:35,920
And before that, first we will see how to complete the list.

68
00:06:36,730 --> 00:06:39,490
And you can say two is equal to 11.

69
00:06:39,700 --> 00:06:46,330
But if we change any modifications, we generally elements of this one, it will affect the list because

70
00:06:46,330 --> 00:06:50,300
it just pointing to that list one, but it's not an actual copy.

71
00:06:50,500 --> 00:06:54,040
So what do you need to say that copy?

72
00:06:56,960 --> 00:07:06,860
So now these are the different beasts now what I could do is I can just, uh, say everyone that happened

73
00:07:07,910 --> 00:07:09,840
off at certain.

74
00:07:12,100 --> 00:07:19,750
So I'm going to add some element of the last one, but it's not two, so now I'm going to bring those

75
00:07:19,750 --> 00:07:24,520
tourists to see the difference and it's a to.

76
00:07:28,050 --> 00:07:29,010
Let us run this.

77
00:07:31,390 --> 00:07:38,270
As you can see, we have added the temporary one, but not to the world, because we do has a different

78
00:07:38,600 --> 00:07:40,030
copy of this whole list.

79
00:07:40,400 --> 00:07:43,520
So if you want to to restore, do you need to sell to the.

80
00:07:46,790 --> 00:07:52,550
So you can also print like this around Plesser two, it will join those tourist.

81
00:07:55,230 --> 00:08:02,640
So as you can see, it has joined the tourists and you could just, uh, sign these tourists to separate.

82
00:08:05,760 --> 00:08:12,780
So I think that's about this we have covered some basic and the most the methods of this this.

