DEV Community

Cover image for Day 28 0f Documenting My Learning Journey
James Kabuga
James Kabuga

Posted on

Day 28 0f Documenting My Learning Journey

What I Leant Today

  1. Tuples and Sets.
  2. How they differentiate each other and where each is prefered over the other.
  3. 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)