Decision Making 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 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