Subscribe
Sign in
Home
The Python Coding Place
Selected Series
Archive
About
Latest
Top
Discussions
When a Duck Calls Out • On Duck Typing and Callables in Python
Functions and classes have something in common: they're callable • Python's duck typing
4 hrs ago
•
Stephen Gruppetta
3
Share this post
The Python Coding Stack
When a Duck Calls Out • On Duck Typing and Callables in Python
Copy link
Facebook
Email
Notes
More
Goat or Car? Solving The Monty Hall Problem With Python and NumPy
It's a different Monty this time—not Monty Python and not Monty from The White Room analogy, either
Dec 1
•
Stephen Gruppetta
6
Share this post
The Python Coding Stack
Goat or Car? Solving The Monty Hall Problem With Python and NumPy
Copy link
Facebook
Email
Notes
More
9
November 2024
The Code That Almost Led to Disaster • A Starbase Story
A Python pitfall • Maybe it's not quite Episode IV level of drama, but drama it is nonetheless…
Nov 23
•
Stephen Gruppetta
10
Share this post
The Python Coding Stack
The Code That Almost Led to Disaster • A Starbase Story
Copy link
Facebook
Email
Notes
More
1969: Can You Land on The Moon? • A Python `turtle` Lunar Lander
Revisiting one of my favourite projects: a lunar lander using, yes, the one and only turtle module
Nov 16
•
Stephen Gruppetta
9
Share this post
The Python Coding Stack
1969: Can You Land on The Moon? • A Python `turtle` Lunar Lander
Copy link
Facebook
Email
Notes
More
4
October 2024
Let's Eliminate General Bewilderment • Python's LEGB Rule, Scope, and Namespaces
Let's shed light on what can be a confusing topic
Oct 27
•
Stephen Gruppetta
9
Share this post
The Python Coding Stack
Let's Eliminate General Bewilderment • Python's LEGB Rule, Scope, and Namespaces
Copy link
Facebook
Email
Notes
More
10
What's In A List—Yes, But What's *Really* In A List
My son's Python homework and what it tells us about Python's data structures
Oct 13
•
Stephen Gruppetta
14
Share this post
The Python Coding Stack
What's In A List—Yes, But What's *Really* In A List
Copy link
Facebook
Email
Notes
More
2
September 2024
What Can A Coffee Machine Teach You About Python's Functions?
Let me tell you about one of my favourite analogies
Sep 28
•
Stephen Gruppetta
16
Share this post
The Python Coding Stack
What Can A Coffee Machine Teach You About Python's Functions?
Copy link
Facebook
Email
Notes
More
6
And Now for Something New
What happens when you first create an instance of a class? The special method you'll (almost) never need to use: `.__new__()`
Sep 8
•
Stephen Gruppetta
12
Share this post
The Python Coding Stack
And Now for Something New
Copy link
Facebook
Email
Notes
More
2
August 2024
Simone's Creative Cooking Club • If You Haven't Got a Clue What "Pass by Value" or "Pass by Reference" Mean, Read On…
…and Python functions don't use either of them. Say hello to "Pass by Assignment"
Aug 20
•
Stephen Gruppetta
10
Share this post
The Python Coding Stack
Simone's Creative Cooking Club • If You Haven't Got a Clue What "Pass by Value" or "Pass by Reference" Mean, Read On…
Copy link
Facebook
Email
Notes
More
3
Is There Any Doctor Here? We're All Doctors…
Python's built-in `any()` and `all()`, and a glimpse at short-circuiting
Aug 9
•
Stephen Gruppetta
20
Share this post
The Python Coding Stack
Is There Any Doctor Here? We're All Doctors…
Copy link
Facebook
Email
Notes
More
6
July 2024
What's The Difference Between NumPy's `arange()` and `linspace()` (A NumPy for Numpties article)
They both generate NumPy arrays with evenly spaced values, but they're not the same
Jul 18
•
Stephen Gruppetta
11
Share this post
The Python Coding Stack
What's The Difference Between NumPy's `arange()` and `linspace()` (A NumPy for Numpties article)
Copy link
Facebook
Email
Notes
More
After You. No, I Insist, You Go First • Python's Operator Precedence
Some topics are boring, and Python's operator precedence is one of them. Let's fix that…
Jul 4
•
Stephen Gruppetta
10
Share this post
The Python Coding Stack
After You. No, I Insist, You Go First • Python's Operator Precedence
Copy link
Facebook
Email
Notes
More
2
Share
Copy link
Facebook
Email
Notes
More
This site requires JavaScript to run correctly. Please
turn on JavaScript
or unblock scripts