Super Simple Python: Madlibs

Super Simple Python is a series of Python projects you can do in under 15 minutes. In this episode, we’ll be covering how to build a simple Madlibs-like game in under 15 lines of Python.  We don’t need to import any libraries for this program, we’re just going to create a simple script. Much likeContinue reading “Super Simple Python: Madlibs”

Python Single Responsibility Principle

You’ve probably heard about programming principles. A piece of advice that always gets thrown around is “have the smallest classes/functions/modules possible”. What does that mean though? How do you make a function as small as possible? The single responsibility principle. This programming principle dictates how small a function could possibly be. In this post, we’llContinue reading “Python Single Responsibility Principle”

Level 1 Python: Scientific Calculator

As part of the Super Simple Python series, we made a basic, four-function calculator. Since then, we’ve also covered how to do math in Python. From the math tutorial, we learned how we could use the Python math module to perform operations outside of the basic add, subtract, divide, and multiply.  Let’s use the mathContinue reading “Level 1 Python: Scientific Calculator”

List Directories, Files, and Subdirectories with Python

Creating, updating, and interacting with files is an integral part of data pipelines. In order to interactively access files, we have to be able to list them. There are three ways to list the files in a directory for Python. In this post we’ll cover how to use the os module and three of itsContinue reading “List Directories, Files, and Subdirectories with Python”

An Overview of Multiprocessing in Python

Python is one of the most popular programming languages today. However, one big weakness is that Python has no real parallelization capabilities. Multiprocessing is a way to implement virtual parallelization with Python. In this post we’ll cover: What is Multiprocessing? The Python Multiprocessing Library Running two Functions in parallel Multiprocessing Functions with Arguments Multiprocessing forContinue reading “An Overview of Multiprocessing in Python”

Python Multiprocessing Functions with Dependencies

Python multiprocessing is used for virtually running programs in parallel. We can use multiprocessing to simply run functions in parallel and run functions that need arguments in parallel. Sometimes, we also need to be able to access the values generated or changed by the functions we run. In this post we’re going to cover howContinue reading “Python Multiprocessing Functions with Dependencies”

Python Multiprocessing with Arguments

The Python multiprocessing library is a native library that allows virtual parallelization of processes in Python. It’s pretty easy to run multiple functions in parallel in Python, but it’s more complicated to do it when those functions have arguments. In this post we’re going to cover: What Python Multiprocessing Processes Are Creating Functions to RunContinue reading “Python Multiprocessing with Arguments”

Download any YouTube Video with Python

Over 100,000 people search for ways to download YouTube videos every month. Here’s how you can download a YouTube video with Python, for free. In this post we’re going to cover how to use the youtube_dl library to download YouTube videos with Python. We’re going to first learn about what the youtube_dl library is, andContinue reading “Download any YouTube Video with Python”

Combine Files that Start with the Same Words with Python

Recently I had to combine a bunch of files that started with the same prefix. I did an NLP analysis of a YouTube series where I had to split up my API calls for each episode. After getting the partial analysis results, I wanted to combine them into one file for each episode. This isContinue reading “Combine Files that Start with the Same Words with Python”

Using NLP to Analyze a YouTube Lecture Series – Part 2

In part one of Using NLP to Analyze a YouTube Lecture Series we asynchronously sent API requests to use NLP on downloaded YouTube Transcripts. As part of getting our analyzed data, we had to split up the text data to get all the requests due to internet speed limits. In this post, we’ll combine allContinue reading “Using NLP to Analyze a YouTube Lecture Series – Part 2”

%d bloggers like this: