While there are many sorting algorithms in computer science, there are just two ways to classify them. In place, and not in place (or out of place). In place sorting algorithms are ones that are run without an auxiliary data structure such as bubble sort. Out of place (or not in place) sorting algorithms areContinue reading “Out of Place Sort a Singly Linked List in Python”
Tag Archives: Python
Twitter, NLP, and the 2022 World Cup
This article is published at 9:55am EST, 5 minutes before the start of the 2022 World Cup Final between Argentina and France. This is the umpteenth installment in my exploration of whether or not Twitter sentiment is good at predicting anything. Last year, I used it on NFL games and Starbucks stock prices. The results?Continue reading “Twitter, NLP, and the 2022 World Cup”
Converting Audio File Type in Python
“This audio format is not supported” Have you ever gotten this error message? That’s what inspired this article. I had a file that I needed to be an mp3 file that was saved as an m4a. I needed the file type to be mp3 to work with it. There were two solutions available to me.Continue reading “Converting Audio File Type in Python”
Working with the JSON library in Python
JSON is a format that is used to send, receive and store data from systems in a network. It is referred to as “light-weight” in comparison to larger formats, such as HTML or XML. There are formatting techniques in Python that can be used to convert JSON to Python objects and vice versa. Python is built with a standard library of helpful modules and the JSON module is one of them. Once we import it using the following code, we have full use of its functionalities.
Can Python Guess Your Number?
Last year we created a High Low Guessing Game as part of our series on Super Simple Python projects. In that game, the computer picks a number and then you guess the numbers. With each guess, the computer will tell you if the number you guessed is higher or lower than the number it picked.Continue reading “Can Python Guess Your Number?”
Expense Tracker in Python – Level 1
Expense tracking is a common task used in every industry. In this post, we’re going to build a simple expense tracker in Python for exercise. This Python expense tracker will simply track your expenses in a CSV file. By the end of this tutorial, you’ll have a Python expense tracking program that shows you yourContinue reading “Expense Tracker in Python – Level 1”
Level 1 Python: Create an Audio Clipping Tool
Clipping audio files is one of the most basic functions of working with audio data. The `pydub` library makes this super easy. Just like the piece about cropping and resizing images, the only reason this program makes it into the Level 1 Python category is the use of an external library. In this post we’reContinue reading “Level 1 Python: Create an Audio Clipping Tool”
How to Create a Simple Memory Game in Python
Want to have a better memory? It’s been said that playing memory games helps. In this post, we build a simple memory game in Python. This game will test your memory by giving a series of strings for you to remember until you can’t do it anymore. *Disclaimer: memory capacity improvement not guaranteed. How toContinue reading “How to Create a Simple Memory Game in Python”
Image Resizing and Cropping Tool in Python
How do websites make those icons scale up and down with your screen size? By having multiple of the same image in different sizes. If you want to add your logo to your site in multiple different sizes, then you’ll need to learn how to do image resizing. Image resizing is always an annoying task.Continue reading “Image Resizing and Cropping Tool in Python”
A Complete Guide to Python String Manipulation
I am pretty sure I’ve had to look up how to work with strings over 100,000 times now. Not just in Python, but for programming in general. Strings are not treated the same in each programming language though. For example, you have to use pointers to mess with strings in C. However, Python provides aContinue reading “A Complete Guide to Python String Manipulation”