## How to Multiply Matrices in Python

In Python and most other OOP programming languages, multiplying two numbers by each other is a pretty straightforward process. Where it gets a little more complicated, however, is when you try to multiply two matrices by each other. A matrix, as you may know, is basically just a nested list, or a number of lists […]

## How to Check for Object Type in Python

This beginner’s Python tutorial will teach you the basics of how to check for an object type in Python. As you probably already know, different types of objects in Python. Objects can be lists, strings, integers, etc. There may be times in your career as a developer where you needÂ to know the difference between one […]

## 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 Python to Display Calendars

Here’s a fun thing about Python that you may or may not already be familiar with: it has a built-in calendar function you can use to display as many calendars as you like. When you import the function, you can use it to display a month of any yearÂ in standard calendar format (a month at […]

## 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 […]

## Using Exponents in Python

By now, you probably know how to multiply and divide numbers in Python. Multiplication in Python is fairly simple and easy to do. But what about using exponents? How would you raise a number to the second power, for example? If you’re not sure, you’ll probably find the answer pretty straightforward. To raise a number […]