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?”

Super Simple Python: Python Directory Visualization

Do you want to be able to see all the directories, subdirectories, and files in your folder in a structured format? Let’s create a directory visualization tool. This post shows how to create a simple version of a directory visualization tool that is almost like the tree command from Unix. It’s a bit simpler, butContinue reading “Super Simple Python: Python Directory Visualization”

Super Simple Python: Reading and Writing to a Text File

Reading and writing to a text file are two of the most basic ways to import and export data with Python. In 2022, Python is strongly known for machine learning use cases. While text files are not traditionally thought of as ML data containers, they can often be the medium of inference. For example, IContinue reading “Super Simple Python: Reading and Writing to a Text File”

Super Simple Python: Simple Calculator

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 calculator in under 30 lines of Python! For a video version: Unlike some of the Super Simple Python examples we’ve done, these don’t require any libraries!  Defining theContinue reading “Super Simple Python: Simple Calculator”

Slicing Python Strings: A Complete Guide

Python comes with a string slicing system that is a Swiss army knife of functionality. Bracket notation allows us to slice Python strings to get one or more characters in order or in reverse. In this complete guide on slicing Python strings we’ll cover: Before we get into how to slice Python strings, we haveContinue reading “Slicing Python Strings: A Complete Guide”

Super Simple Python: Madlib

Super Simple Python is a series of Python projects you can do in under 15 minutes. In this episode, we’re going to make a Python Madlib in under 15 lines of code. We don’t need to import any libraries for this program, we’re just going to create a simple Python Madlib script. Much like theContinue reading “Super Simple Python: Madlib”

Basic Python: How to do Math in Python

If you’re doing anything data science or machine learning related in Python, you should know some math. This post is for anyone looking to get into a Python role working with data or machine learning. First, we’ll cover how to use base Python (no imported libraries) to do basic math on floats and integers. Then,Continue reading “Basic Python: How to do Math in Python”

Super Simple Python: Tower of Hanoi

Super Simple Python is a series of Python projects you can do in under 15 minutes. In this episode, we’ll be covering the Tower of Hanoi puzzle game in 10 lines of Python! We’ve covered many different types of games in the Super Simple Python series so far including the High Low Guessing Game, RockContinue reading “Super Simple Python: Tower of Hanoi”

Super Simple Python: Word Count

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 get the word count from a text in under 5 lines of code! Video version: So far in the Super Simple Python series, we’ve mostly covered programs using the random libraryContinue reading “Super Simple Python: Word Count”

Super Simple Python: Prime Factorization

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 prime factorize a number in less than 25 lines of Python! For the video version of making a prime factorizer in Python: The Super Simple Python series has been pretty focusedContinue reading “Super Simple Python: Prime Factorization”