Python's map, reduce, and filter Functions

In the last year, I have spent much more time writing Javascript than any other language. Javascript uses a lot of functional programming. That means that when you call a function, the return

Building a Python Package: First Steps (2)

Since we are looking to eventually publish the package on, I decided to start looking for a guide on publishing on the site. I quickly came across an FAQ page that had links to a packaging tutorial on the Python Packaging User Guide.

Building a Python Package: Introduction

It probably won't be a detailed how-to on what the package does (in terms of programming) because I am not sure how complicated that may be. However, it will cover the steps required to get a package in the Python index so you could download it for a later project.

Python's Enumeration Class

Enumerating something adds values (numerical) to the items. In Python, when iterating over an array, it's sometimes beneficial to get the item with the index. Take for example the iterations below.

Type Checking in Python

Typing is a bug deterrent. It acts as a strong code linter that allows your code to check itself. What does it mean to check itself? When we type a function in Python or Javascript, we explicitly define the data type and data structures that are allowed to be passed as an argument.

Common String Functions

One of the basic built-in data types in Python, a string, is a sequence of text characters. strings are declared with quotation marks ... You can also try to coerce other data types to be a string using the built-in str() function. Strings are used all over the place in Python.

Calling an API with Python

When developers build an API they define API routes. These are URLs on the server that process the HTTP request arguments and return data based on those arguments (or an error). Each route has an accepted HTTP method that you must use. For example, I might have a profile picture on my API at

Learning How to Do Things with Python

Before doing a difficult task, it helps to have a process. Processes allow you to reduce the cognitive load of a task by outsourcing part of the "figuring out" to the process. Processes can—also—reduce the chance that you will miss something obvious, or waste time trying to

Importing Modules with Python

There comes a point in a beginner Python developer's life when he wants to leave the nest and starting importing and reusing his own functions. However, just like with any programming language, there are conventions and syntax that dictate how to export or import code to different modules.

Python Decorators

Python decorators have a mysterious presence. This is true for a developer that has some Python knowledge, and definitely the case for someone new to programming. The first time I used a decorator in Python was with the Flask ​web framework, and I kept looking at the line of code it was on like it