Lists in Python: How to Create a List in Python

The Python lists are widely used in python. Lists are one of the most used data structures in Python. It’s an unordered data store. In this article, we will learn how to work with lists in Python. You should know Python syntax and what is the lists in python. We have talked in a previous […]

Read More

How to install python on windows installation guide

Prerequisites In this article, we will talk more about how to install python on windows. If you’re new to python. You can check our beginner guide to python to know more about its usage. In this article, we will talk about: Downloading Python How to install it Install Python in windows OS How to uninstall […]

Read More

How to Call a Function in Python Guide

In this article, we will know how to call a function in Python.  You should have Python installed in your machine. You should know the basics of  Python syntax.  if you don’t check our installation guide and get started guide. Content How to create a function in Python What are the scopes in Python How […]

Read More

Insertion Sort: A quick tutorial and implementation guide

Prerequisites To learn about Insertion Sort, you must know: Python 3 Python data structures – Lists What is Insertion Sort? We are in the second tutorial of the sorting series. The previous tutorial talks about Bubble Sort which is a very simple sorting algorithm. If you haven’t read that, you can find it here. Like […]

Read More

How to Use Python to Multiply Strings

We’ve already gone over how to use multiplication in Python, but did you know that Python can be used to multiply things other than numbers? In fact, you can use Python to multiply strings, which is actually pretty cool when you think about it. You can take a string and double, triple, even quadruple it […]

Read More

Python Tricks: Storing Multiple Values

In this post, we’re going to talk about how to store and manipulate values in a Python list. Understanding all the ways you can store and use values is integral to mastering any coding language, and Python is no exception. For the purposes of this post, let’s use the following list as an example: l […]

Read More

How to Use Python to Convert Miles to Kilometers

It can be so frustrating that the entire planet can’t just agree on one system of measurement, whether it relates to measuring distances, weights, temperatures, etc (for the record…same goes for which side of the road everyone drives on). If every country used the same units of measurement, then these formulas would be useless and […]

Read More

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

Read More

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

Read More

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

Read More