29 Jul 2022 Emad Bin Abid 7 Ways to Loop Through a List in Python Lists are one of the six fundamental data types in the Python programming language. To work effectively with Python, you need to know the functions and methods that work with lists. And that’s what we’ll explain in this article. In Python, lists can be used to store multiple elements in a single variable. Moreover, a single Python iterate list can harbor elements of multiple data types. Lists (like arrays in other programming languages) can also be nested – i. Read more 17 Jun 2022 Emad Bin Abid What Is the Python ord() Function? How Do You Use It? Working with Unicode characters? You’ll need the Python ord() and chr() functions. Find out what each one does and why you should use them by reading this article. In this article, we'll examine several examples of converting a character to its Unicode code using Python's ord() function. We’ll also review Unicode and Python's chr() function. So let's get started! Unicode Basics Computers, at their most fundamental, work with numbers. Under the hood, the characters and letters on a screen are encoded as a list of integers. Read more 20 May 2022 Emad Bin Abid How to Sort a List of Tuples in Python Are you confused about sorting lists of tuples in Python? Want to know how to sort them efficiently? This introduction will cover everything you need to know to master this type of sorting. Lists and tuples are essential data structures in Python. In several cases, you may have to sort a list of tuples. This post will teach you how to utilize the sorted() function and the sort() method and the distinctions between the two. Read more 28 Apr 2022 Emad Bin Abid Python Set Operations: Union, Intersection, and Difference – With 10 Examples Are you stuck trying to use Python set operations? Want to know how to use them? This introduction gives you a basic understanding of set operations in Python. In this tutorial, we look at set operations in Python and other operations performed on sets. Furthermore, we look at the different methods on sets as well as examples of set operations in Python. Check out this article for a deeper look into combinatorics with Python. Read more