Okay.
After we learn something about tuple list, now it is time to learn about sets.
Okay, what is it?
Sets is also a it's a collection.
Okay.
It is not ordered means it doesn't have any index is not indexed.
And in Python sets are written with curly brackets.
For example I am going to create.
It is equal to.
You use curly bracket for this and then name of the some fruits like apple.
What is the other one is like banana.
And we have cherry okay.
So now this is a set and it is not ordered means it doesn't have a index okay.
It is not zero.
This is not one.
This is not two okay.
So you cannot print these elements using the index because it is not ordered.
So now let's use print and then use roids and save it.
Open a new terminal and let's run this and see what is going to be happen.
Okay city Python basic and let's use Python and sets.py.
Hit enter.
Now you see that it is printing all elements with curly brackets.
And also those, uh, question marks.
Okay.
So how can I print, uh, element which is inside this.
Okay.
Each element again I need to use a for loop okay.
To navigate through this fluids this set and then print all element.
And let's go see that okay.
For example again x in right.
And the x okay.
So this will come and start navigating through.
Okay.
So it will come and traveling through this.
Okay.
First it will print apple the next line banana in the next line cherry.
See we Have cherry.
We have apple and we have banana.
So it is how it is working.
Okay.
And it is not ordered because of that.
It is not printing first.
This one.
Second.
This one.
Third.
This one.
Because it is not ordered.
So it is printing cherry, apple, banana and the other one.
Okay.
See this time it is apple, cherry, banana.
And this time it is banana, apple cherry.
Because of that it is not ordered.
So it is how you can create a set and you can use it okay.
Also we have.
Other options for this okay.
For example we can add element.
We can remove element and we can update.
We can print the length of the set.
And a lot of things that we can do a lot of operation that we can do with set.
But later we will see them with, uh, more examples through the course while we are using it into the
real operation.