Functional Programming in Python – the filter 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 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
Today we’ll be making a model of a treasure chest in Blender. I’ll be using the 2.81 version of Blender.… Read More »Treasure Chest Model in Blender
Today we’ll be talking about the order of arguments. If you haven’t read my article on argument matching modes in… Read More »The Order of Arguments
Today we’ll be talking about keyword-only arguments. If you haven’t read my article on argument matching modes in Python, it’s… Read More »Keyword-Only Arguments
Today we’ll learn how to copy a numpy array. If you want to copy an array, you can use either… Read More »numpy Part 8 – How to Copy a numpy Array
Today we’ll be talking about passing arguments to functions in Python. In particular we’ll be talking about argument types and… Read More »Argument Types and Matching Modes in Python
Today we’ll be talking about the Counter class from the collections module. The Counter class is used to create an… Read More »The Counter Class from the collections Module
In the previous part we started adding some code to the Python and kv files. In this part we’ll focus… Read More »Kivy Part 18 – Slugrace – Settings Screen GUI
Today I have a short drill for you. It’s about passing mutable and immutable objects as arguments to functions. If… Read More »Drill – Mutable and Immutable Objects as Arguments
Today we’ll be creating a simple plaque in Blender. I’ll be using the following features and techniques: add text edit… Read More »Modeling a Simple Plaque in Blender
Today we’ll be talking about state retention across function calls. If you prefer to watch a video version, here it… Read More »State Retention Across Function Calls in Python
Today we’ll be talking about the nonlocal statement. This article is sort of complementary to my article on the global… Read More »The nonlocal Statement in Python
Today we’ll learn how to create an array filled with ones, zeros or arbitrary data. Sometimes you may want to… Read More »numpy Part 7 – Arbitrary Data, ones and zeros Array
Today we’ll be talking about the global statement and global variables in Python. This article is sort of complementary to… Read More »The global Statement and Global Variables
Today we’ll discuss scopes. To start with, what is scope? Well, to keep it simple scope is the part of… Read More »Local, Nonlocal, Global and Built-in Variable Scope
Today we’ll be talking about saving the current value of a loop variable in functions nested in loops. Sounds more… Read More »Save Loop Variable’s Value in Functions Nested in Loops
In the previous part we created some files, both Python files and kv files. But they were left empty. Now… Read More »Kivy Part 17 – Slugrace – Some Basic Code to Start
Today we’ll be talking about closures, also known as factory functions. A closure is a function that remembers values in… Read More »Closures, aka Factory Functions in Python
Today we’re going to do some very basic color animation in Python. We’ll add a material to an object and… Read More »Color Animation in Blender with Python