Slicing Through Sequences In Python

One of the easiest ways to extract a subset of elements from an iterable in Python is by applying the concept of slicing. In this post, let's understand how we can slice through any iterable, i.e, strings, lists or tuples in order to carve out a subset!