Advanced String Formatting with the format Method
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 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
To calculate a percent change, you can use the following formula: pc = (new – old) / old * 100%… Read More »How to Calculate a Percent Change Using Python
Today we’ll be talking about data type objects in numpy. Up to now we’ve been using dtype to determine the… Read More »numpy Part 10 – Data Type Objects in numpy
In one of the previous parts we created a basic Race Screen GUI. This is the screen where we’re going… Read More »Kivy Part 20 – Slugrace – Race Screen GUI
Today we’ll be talking about the reduce function, which, unlike the map and filter functions discussed in the previous articles,… Read More »Functional Programming in Python – the reduce Function
Today we’ll be talking about the filter function, which is, just like the map function, a built-in used in functional… Read More »Functional Programming in Python – the filter Function
Today we’ll be talking about the map function, which is a built-in used in functional programming. In the following two… Read More »Functional Programming in Python – the map Function
Today we’ll be talking about jump tables. These are structures containing functions, usually lists or dictionaries. We can choose the… Read More »Jump Tables in Python
Today we’ll be talking about function annotations. These are user-defined data that add some information to functions. Annotations add information… Read More »Function Annotations in Python
Today we’ll be making a model of blades of grass. I’ll be using the 2.81 version of Blender. In particular,… Read More »Blades of Grass Model in Blender
Today we’ll be talking about functions embedded in data structures. Here’s the video version of this article: In Python functions… Read More »Functions Embedded in Data Structures
Today we’ll learn how to create numpy identity arrays. An identity array is a square array containing ones on the… Read More »numpy Part 9 – numpy Identity Array
Today we’ll be talking about functions in Python. Functions in Python are often described as first-class objects. It just means… Read More »Functions as First-Class Objects
In the previous part we created a very basic Settings screen, which contains all the elements that are supposed to… Read More »Kivy Part 19 – Slugrace – Settings Screen – Class Rules
Today we’ll be talking about lambda expressions that are used to return anonymous functions, so functions without a name. Here’s… Read More »Anonymous Functions and Lambda Expressions
Today we’ll be talking about recursive functions. Recursive functions are functions that call themselves. A typical example shown when recursion… Read More »Recursion and Recursive Functions in Python
In some of the recent articles we were talking about different aspects of argument passing in Python. Time for a… Read More »Drill – Function Arguments in Python