openpyxl Part 3 – Iterating Over Rows and Columns
In the previous part of the series we saw how to access single cells of the spreadsheet and the values… Read More »openpyxl Part 3 – Iterating Over Rows and Columns
In the previous part of the series we saw how to access single cells of the spreadsheet and the values… Read More »openpyxl Part 3 – Iterating Over Rows and Columns
Among the numerous string methods are formatting methods and statistical methods, which I covered in my articles not long ago.… Read More »String Searching Methods in Python
In the previous part we were talking about adding shapes to the GUI. We know how to draw ellipses, rectangles,… Read More »Kivy Part 26 – Slugrace – Adding Shapes to the GUI
In the previous two parts of this series we were talking about the Series class in general and about creating… Read More »pandas Part 4 – the DataFrame Class
In the previous part of the series we created a simple spreadsheet and saved it as wb1.xlsx. Today we’ll retrieve… Read More »openpyxl Part 2 – Retrieving Data from a Spreadsheet
There are lots of string methods that we can use. In one of my previous articles I was talking about… Read More »String Statistical Methods in Python
In the previous part we were talking in general about Canvas, coordinate space and Canvas drawing instructions, so vertex instructions… Read More »Kivy Part 25 – Canvas Vertex Instructions
Today we’ll be talking about string formatting methods. Here’s the video version of the article: If you haven’t read my… Read More »String Formatting Methods in Python
In this series we’ll be using the openpyxl module to work on spreadsheets. In this part we’ll install the module… Read More »openpyxl Part 1 – A Simple Workbook
In the previous part we introduced the Series class, which is one of the fundamental data types in pandas. Let’s… Read More »pandas Part 3 – Creating Series Objects
Most programming tutorials, regardless of which programming language or framework you are learning, begin with a very basic program where… Read More »Panda3D Part 2 – A Basic Panda3D App
Today we’ll be talking about the string format operator. The string format operator is not the preferable way of formatting… Read More »The String Format Operator
In the previous part we installed pandas, or, if you have the Anaconda distribution of Python, we just made it… Read More »pandas Part 2 – the Series Class
Today we’ll learn how to use dictionaries to format strings. If you haven’t read my previous articles on formatting strings,… Read More »Using Dictionaries to Format Strings
In this series we’ll be working on a 3D game, Slugrace 3D, where players will put bets on racing slugs.… Read More »Panda3D Part 1 – Installing Panda3D
pandas is a Python module that builds on top of numpy and is used to deal with data in a… Read More »pandas Part 1 – Introduction to Pandas
Today we’ll learn some advanced techniques of formatting strings with the format method. If you haven’t read my article on… Read More »Advanced String Formatting with the format Method
Today we’ll be talking about string formatting with the format method and f-strings. Strings often need formatting. There are a… Read More »String Formatting with the format method and f-strings
In the previous parts we created all the basic screens our app needs. But they are not very eye-catching. And… Read More »Kivy Part 24 – Introduction to the Canvas Object
Today we’ll be talking about raw strings. A raw string is a string with suppressed escape sequences. If you want… Read More »Raw Strings in Python
Today we’ll be making a Light Alley animation in Blender. I’ll be using the 2.81 version of Blender. In particular,… Read More »Light Alley Animation in Blender
Today we’ll be talking about escape sequences. Escape characters / sequences are characters used to escape the special meaning of… Read More »Strings with Escape Sequences in Python
Today we’ll be talking about string concatenation and repetition. Concatenation and repetition work with all sequences, not only strings. String… Read More »String Concatenation and Repetition in Python
Today we’ll be talking about string immutability. Here you can watch the video version of this article: Strings are immutable.… Read More »String Immutability in Python
Today we’ll be talking about string comparison and membership. Here’s the video version of this article if you prefer to… Read More »String Comparison and Membership in Python
Today we’ll be talking about string literals. We can use single, double or triple quotes for string literals. Here’s an… Read More »String Literals with Single, Double and Triple Quotes
Today we’ll be talking about the dot function from the numpy module which is used to calculate the dot product.… Read More »numpy Part 14 – The dot product
Today we’ll write a program that will recursively implement the Towers of Hanoi game. If you prefer to watch the… Read More »Recursive Implementation of the Towers of Hanoi Game
Today we’ll be making a cloth simulation in Blender. I’ll be using the 2.81 version of Blender. In particular, we’ll… Read More »Cloth Simulation in Blender
In the previous parts we created all the basic screens, or, to be precise, separate apps at this point. In… Read More »Kivy Part 23 – Slugrace – Game Over Screen GUI
Today we’ll be talking about the boolean type in Python. The boolean data type can have only one of two… Read More »The Boolean Type in Python
Today we’ll be talking about bitwise operators in Python. Here’s the video version of the article: Bitwise operators work on… Read More »Bitwise Operators in Python
Today we’ll be talking about binary numbers. Here’s the video version of the article: Computers don’t understand numbers. They only… Read More »Binary Numbers in Python
Today we’ll be talking about the if-elif-else statements used for decision making in Python. Here’s the video version of the… Read More »Decision Making in Python
Today we’ll be making a turbulent star animation. I’ll be using the 2.81 version of Blender. In particular, we’ll be… Read More »Turbulent Star Animation in Blender
Today we’ll be talking about ranges. A range is a sequence of integer numbers. The range function is used to… Read More »The Basics of Ranges in Python
Today we’ll be talking about the accumulate function from the itertools module. The itertools module contains quite a few interesting… Read More »Accumulation with itertools
Today we’ll be talking about operations on two numpy arrays. It’s pretty easy to perform operations on two numpy arrays.… Read More »numpy Part 13 – Operations on Two numpy Arrays
Today we’ll be talking about paths in graphs. This article is a continuation of the previous one, so make sure… Read More »Finding Paths in Graphs
Today we’ll be talking about graphs. Just the basics. What are Graphs? So, what is a graph? Have a look… Read More »The Basics of Graphs with Python
In the previous part we created the Bets screen, which will be injected into the lower part of the Race… Read More »Kivy Part 22 – Slugrace – Results Screen GUI
Today we’ll be talking about dictionary comprehensions. Here’s the video version of the article: If you know how to use… Read More »Dictionary Comprehensions in Python
Today we’ll be making an animation of a night flight over an alien city. I’ll be using the 2.81 version… Read More »Night Flight Over an Alien City Animation in Blender
Today we’ll be talking about set comprehensions. If you know how to use list comprehensions, it’ll be much easier for… Read More »Set Comprehensions in Python
Today we’ll be talking about generator expressions. If you haven’t read my previous six articles on generators (basics of generators,… Read More »Generator Expressions in Python
Today we’ll be talking about passing generators as arguments to other generators. If you haven’t read my previous five articles… Read More »Generators Passed as Arguments
Today we’ll be talking about numerical operations on numpy arrays with scalars. Scalars are numbers like integers or floats as… Read More »numpy Part 12 – Operations with Scalars
Today we’ll be talking about recursive generators. Here’s the video version of the article: If you haven’t read my previous… Read More »Recursive Generators in Python
Today we’ll see how to use the yield from statement with generators. If you haven’t read my previous three articles… Read More »The YIELD FROM Statement in Generators
Today we’ll see how to use the throw method on generators. If you haven’t read my previous two articles on… Read More »The throw Method on Generators
Today we’ll see how to send objects to generators. If you’re not quite sure what generators are and how they… Read More »How To Send Objects to Generators in Python
Today we’ll be making an alien creature animation. I’ll be using the 2.81 version of Blender. We’ll be making use… Read More »Alien Creature Animation in Blender
In the previous part of the series we created the Race screen. I also mentioned that the Bets and Results… Read More »Kivy Part 21 – Slugrace – Bets Screen GUI
Today we’ll be talking about generators. A generator is a function that yields a sequence of values using the yield… Read More »Generators in Python
Today we’ll learn how to create structured numpy arrays. In all the arrays up to now we had homogeneous data,… Read More »numpy Part 11 – Structured numpy Arrays
Time for a list comprehensions drill. In the previous two articles we were talking about list comprehensions. Let’s practice them… Read More »Drill – List Comprehensions in Python
Today we’ll learn how to use list comprehensions to work with matrices. In particular we’ll be talking about matrix column… Read More »Matrix Column and Diagonal Retrieval with List Comprehensions
Today we’ll be talking about the list comprehension in Python. A list comprehension is used to create a list. It… Read More »List Comprehension in Python
Today we’ll be making a Sunset Animation in Blender. I’ll be using the 2.81 version of Blender. We’ll be making… Read More »Sunset Animation in Blender with the Ocean Modifier
Today we’ll see how to programmatically check a couple of things. In particular, we’ll be checking the version of the… Read More »Python Interpreter – Version, Path and Platform Check