Welcome.
And in this lecture, we will see some live examples on petroleum based on previous lectures, examples.
So let's try to write them here and to run them and see what happens.
So once you open your project, just create a new file.
You can call it collections.
Toppo, BASIX, yeah, it's here as well.
Collections, double basics.
So first of all, let's create a table called professions.
And the industry, right and right here, we have round brackets, all right, so this one tells us
that we are dealing with double indifference from this, that this means we are dealing with a list.
All right.
So we have we have couple now.
We have front end.
We have.
Backhand, we have dev ops.
And we have Kuai and once we have this Stapel, we would like to, first of all, print it right.
So let's try to print it.
See that everything's fine.
Like this, again, with casting, as always.
Yeah, so here we have our Toppo, and also I'm going to teach you a cool trick if you want to know
which type of collection or which type of variable you're dealing with.
You can just do the keyword type.
All right.
You see right here, once you click the T word T letter, you can see it in the pop up or type and inside
another brackets.
Just put your data and there a type and just print that.
So we have professions in the industry rounded by type and rounded by print.
So this will print us the type of the collection, the type of the data collection, and let's try to
run it.
Right, so you can see right here that we're dealing with double and let's change it, let's four square
brackets here for a second and see what we get.
Yeah, like that.
And immediately, it's a change to a list.
All right, so this lectures about topos, so let's leave it at it, as is that.
All right.
Now let's try to see the examples from the previous lecture.
So, first of all, let's print off the cell number one, off the tuple.
So print off cell index one.
And here we said that we're going to do it by mentioning the Toppo and inside square brackets, putting
the number of the index.
OK, let's print it.
And there we have it, we have Back-End, which is this cell, OK, right after let's try to print.
The last sale of the collection and how are we going to do it again, same as we did in this, we just
mentioned the name of the collection and inside Square Records just put number minus one and you should
get the last sale.
Yeah.
So we can see it right here.
Kiwa So if you put like number minus two here, you will get their jobs, which is one before it.
Correct, we have that box right here.
OK, so now we want to do the last example, the last manipulation we discussed in the previous video,
which is printing.
A range of cells out of the tuple and we're going to achieve it.
By mentioning, first of all, casting, by mentioning the top ball and inside square brackets, just
put one, two dots three.
This should do the work.
And again, as we discussed, this will give us cell number one, cell number two.
And that's it, because cell number three is excluded.
Amazing, so here it is, we have all the cells right here that we wanted to extract and that's about
it.
Lets me let me just show you a bonus, a bonus manipulation that we will go over thoroughly in the next
videos.
But this is like an intro.
So if you want to type.
The length of the collection you can do it by.
SDR, as always, this doesn't change, and then you have Lenna and here you have professions, this
will give us the land.
We already discussed it in previous videos.
I think it was in this and this way.
This will give us the number of items.
OK, so this is the number of items we have.
We have item number one, two, three and four.
Again, as we discussed in previous lectures, it does not start from zero.
It's not index number.
It's not like the last number of index.
It is number of items like in human language.
We have four items.
All right.
This concludes our example part regarding basic.
And see you in the next video where we discuss the advanced part of Toppo by by.