Hello

Welcome to the Blog

Recent Posts

Controlling The Speed Of The Motor

This is a continuation to my first lesson on how we can control a DC motor using a Raspberry Pi and Python. If you would like to follow along with this lesso...

Personal Projects

Controlling Motors Using a Raspberry Pi and Python (Part 1) Controlling a Seven Segment Display Using a Raspberry and Pyth...

Modules

As we code more and more, our Python files tend to get larger and harder to maintain. Fortunately, Python allows us to split up our program into different fi...

List Comprehension

List comprehension allows us to easily fill out contents of a list in a single line of code. For example, if we wanted to fill a list with the first 5 even ...

String Formatting

In this lesson we will cover different ways to format strings in Python. What if we wanted to create a function that greets a user when the function is call...

Error Handling

By now, you may have come across various errors in your Python programs. No worry, everyone makes mistakes the first time around. In this lesson, we will cov...

Intermediate Intro

Introduction Welcome to the intermediate Python Tutorial, where we will cover more advanced topics in Python. Some of the topics that we’ll discuss are: ...

Files

Python allows us to work with files natively, so we can store information for later, or read and analyze data . In this lesson, we will cover the basics of ...

Linear Search And Max Value Continued

Now that we know what functions are in Python and how we use them, why don’t we take a look back at our first examples and turn them into functions. Lets be...

Linear Search And Max Value

Since we have a good enough foundation with Python so far, I think it is time to introduce two simple algorithms that use most of what we have learned so far...

Functions

Functions in Python are reusable lines of code that only run once they are called on. Functions can be used to shorten the overall lines of code needed in a...

What is Python

The Python Programming Language Python is a dynamically typed, interpreted, high-level programming language created by Guido van Rossum in 1990. Python has...

Variables

Variables Variables are one of the most important tools while programming in any language. Variables are containers that can store any data type, even othe...

Strings

Strings Strings are sequences of characters in Python In short, Strings are/can be bits of text, numbers, and symbols that can be stored The common way of...

Numbers

Numbers The first basic data type we’ll cover are numbers There are a two different “types” of numbers in python: Integers - positive or negative whole...

Loops

Imagine we wanted to print out the first 100 positive integers (1, 2, 3, 4…). Till now, the only way we could do that is by manually printing each number: p...

Logic

Python allows us to control the flow of our program using logical operators and truth values: True and False. Operators Python also allows us to compare at...

Intro

Introduction This series of lesson will be about the Python programming language. I will try to keep everything as beginner friendly as I can in these lesso...

Conditionals

if and if-else Statements This page will cover the basics on if/else statements in Python. What are if/else statements? if/else statements are decision...

Collections

Lists, Tuples, Dictionaries Lists, Tuples, Dictionaries are all collection data types, meaning that they can store multiple different items within one entry...

Booleans

Booleans Booleans in Python are truth values, i.e. True or False. Booleans are generally used for control flow in programs. The 2 types of boolean values ...