The Ultimate Guide To Python Tuples

Python has several built-in data structures such as Lists, Sets and Dictionaries (check out the articles!).In this article, you’ll learn everything you need to know about tuples including real world examples. A Python tuple is an immutable, ordered, and iterable container data structure that can hold arbitrary and heterogeneous immutable data elements. Tuple Motivating Example … Read more

How to Sort a List of Tuples? – Most Pythonic Way!

Did you already try to sort a list of tuples? And when you saw the result, it wasn’t quite what you expected? Well, this happened to me when I went deeper into Python, and I suppose it also happened to you since you are looking for a solution. To me, this shows that you are … Read more