Class : dict Keys are immutable, iterable Indxing and slicing are not allowed Set { }
()
{}
Class : set Unordered, mutable,iterable duplicate, indexing and slicing are not allowed
Elements of data don’t have a defined order, that order will change after running
Mutable means we can change the elements /items after it has been created Return sequence of items/elements
Insight Unordered
Mutable
Ordered
2023
Slicing
Duplicate
Indexing Iterable
Iterable = Can be iterated by loop method
Elements of data have a defined order, that order will not change after running
Allow duplicate means data can have two items with the same value Positif index starts 0 from left side, while negative index starts-1 from right index