What I Leant Today
- Tuples and Sets.
- How they differentiate each other and where each is prefered over the other.
- Tracked , Committed and pushed to Github.
On What I Learnt Today
Tuples Are a collection of oreders , immutable list of items.
Defined using parenthesis
Indexing and slicing of items in a Tuple is the same as that of lists.
Sets Are un-ordered , mutable and non-duplicate collection of items.
Defined using curly braces {}
Used when we want to return non-duplicate values.
In Sets there is no indexing or slicing
Resources I Used
Python refresher series by Bonaventure Ogeto on You-tube.
What's Next
Build a simple contact list project combining the knowledge I learnt on lists , sets , dictionaries and tuples.
Top comments (0)