Is A List A Data Type?

In Python there is a handy function to determine the data type of any variable, and it is aptly called type(). This function can help to assess whether a variable is of a certain data type to help you perform any type of computation on it. The different data types available in Python are: int, …

Read more

How To Sort 2D Array In Python: 1 Line Of Code Without Numpy

How do you sort a two-dimensional array in Python easily without importing libraries? Thankfully, some native functions in Python make sorting arrays a breeze. I recently had a project where I had the following data structures, representing each unpaid invoice by the customer, the days they were overdue and how much was outstanding. Here’s a …

Read more