Hi and welcome to this lesson, vertue structure types they need to be aware of for the exam, and those
are two poles or topples and objects.
So let's have a look of them both similar to two types of variables.
We've seen the four.
So we'll start with the.
Topple over tuple variable.
My tuple.
Type equal to.
To Paul and Curly braces, we then add what data types we'd like.
Now this is what the Super Bowl gets super interesting.
The difference between a tuple and a list is that with a list, we had to explicitly say where it was
going to hold strings or numbers.
Whereas now with a tuple we can do is specify the data types we'd like inside the list.
So it's almost identical to a list, except we can support multiple data types.
So inside we could have string.
No, and stirring, I mean, we set default.
Because we got a string, we could say cats.
But a number one button of the string, the dog.
And again, that's the main advantage.
It's not limited to only one data type.
The next type of structure we need to be aware of is objects.
Now, if you work with Jason before, it's exactly the same as that.
It's a way we can structure multiple data types.
So let's give it a bit more context variable.
I will call it my objects type.
Equal to objects in cyber brackets means curly braces.
Just like we would if it was a map.
They're both very similar, except we can specify multiple data types to name equal to string.
Would say port.
Equal to.
No.
What we can insert to a list.
Simple, it's a list.
And we'll set that to number.
But what we need to do is set a default.
And just like a map, we are name equal to.
And I will use my name SAPI T.J..
And ports, he said, is a list and type numbers, you could put some random ports in there.
So the S.H. Essence Eepy and what the HTP, I'll include a link.
So with documentation for these, if you want to learn more about them, both tuples and objects are
high level concepts so important to be aware of, especially for the exam.
So make sure we understand the difference between to put on an object and a map and a list.
That wraps up this lesson.
I look forward to seeing you in the next well.