## How to Use Python to Convert Fahrenheit to Celsius

There aren’t many easy tricks you can use to easily convert Fahrenheit to Celsius (or vice versa) in your head. Unless you’re great with numbers, the formulas aren’t exactly something you can you figure out using mental math. If you’re not so great with numbers, there’s calculators for that. Or, if you feel so inclined, the formulas […]

## Build Games for Python Using Pygame

Pygame is a set of modules designed to help you write Python games by providing you with extra functionalities and libraries. It’s free, supports Python 3.2 and up, runs on just about every operating system and platforms, and has over a million downloads, so it’s very widely used. Pygame is super speedy because it uses optimized […]

## Using Modulo to Check for Leap Year in Python

We’ve already covered the modulo (%) operator in a previous lesson, but just as a quick refresher, the modulo is an operator that is used to calculate the remainder of one number divided by another. So if you have an equation such as 6 % 3, the answer would be 0, because 3 goes into […]

## Python Code Snippets: Solving the Quadratic Equation

Here’s a fun way to use Python: input any three numbers into a function and you can solve the quadratic equation in milliseconds. Bet you wish you knew about this one back when you were in Algebra I class. The function, written by the people over at Programiz, solves the quadratic equation using basic multiplication […]

## Top 5 Free Python Resources for Beginners

Learning Python as a beginner can be a little overwhelming. Where do you start? How do you know you’re getting the best possible information? What do you do once you’ve gotten down the basics? If you’ve recently found yourself asking any of these questions, you’ve come to the right place. In this post, we’ve compiled a […]

## Image Processing with Pillow for Python

If you’ve ever tried to process images on Python and found it to be a total pain, Pillow is here for you. You might know that PIL (Python Imaging Library) has a lot of problems and limitations, and it doesn’t really seem to be in development (it’s hardly ever updated or changed). Here’s where Pillow […]

## Beautiful Soup: A Web Scraper for Python

If you ever need to extract data from a Python site or file quickly and easily, Beautiful Soup, a library designed to help with things like web scraping, is here for you. Beautiful Soup is built on top of popular Python parsers lxml and html5lib, and it’s great for web scraping because it automatically converts […]

## Python Snippets: How to Generate Random String

Python can be a really useful tool to do things like creating random strings. There could be dozens of different reasons why you might want to create a random string of characters and numbers, but one of the more common ones is to use this string as a password. Python Code Snippets offers this really […]