If you would like to read more posts about Python Basics, you can find them here.
Thank you for reading!
License Copyright 2021-present Vasudha Jha.
Released under the Creative Commons Attribution-ShareAlike 4.
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!
One of the simplest ways of making Python code more readable is by replacing positional arguments in function calls with named or keyword arguments. Let's explore how we can do that in this post!
Python comes with a lot of built-in data types like lists, sets, tuples, and dictionaries and because of its simplicity, Python makes it very easy to work with these data types. In this post, I will discuss how to nest these data types to create sophisticated types for managing data.