Pinned Tweet
Win three years of Real Python, plus all four of our Python books.
That's our Black Friday giveaway. Entering is free, you just need a free Real Python account.
Entries close Friday, November 27.
realpython.com/blackfriday?u…
Python's creator didn't step down over a scandal. He stepped down over two characters: :=
The 2018 fight over the walrus operator ended Guido van Rossum's 23 years as BDFL.
Bruce Li tells the story, starting with a 1989 Christmas break in Amsterdam.
hackernoon.com/guido-van-ros…
1
5
905
That operator is still in Python today. Our tutorial shows what := does and when it's worth using.
realpython.com/python-walrus…
1
272
Ask an LLM about your company's private docs and you get nothing useful. It never saw them.
The Vector Databases and Embeddings With ChromaDB course shows how to store embeddings and hand the model the context it's missing.
realpython.com/courses/vecto…
1
5
1,593
Your script asks yes or no. The user types "yeah".
Instead of another if statement for every way people answer, hand the reply to the Jev AI model and let it sort it out.
realpython.com/jev-python/?u…
8
1,629
Know some Python and want to work with data?
Load it → clean it → analyze it → chart what it means. Real Python takes you from your first DataFrame to confident analysis on real datasets.
Get your free learning plan 👇
realpython.com/start/data-sc…
Want to call an LLM from Python and then hand it tools?
This free starter kit has a cheat sheet, working code, a full video course, and a quiz to check yourself.
realpython.com/kits/ai-apps-…
plt.plot(x, y, "o") draws the same scatter plot as plt.scatter(x, y), and it's typically several times faster.
plt.scatter() earns the extra time when points differ:
1. Five variables, one chart
2. A hidden dot
3. Color from numbers
4. A Boolean mask
🧵
2
8
3,207
4. To style points by a condition, use a Boolean NumPy mask. The tutorial splits 40 simulated bus arrivals by whether each one falls under y, a probability curve:
in_region = bus_likelihood < y[bus_times]
Masked points become green dots, the rest red x markers.
1
459
For a quick look at two columns of data, do you type plt.plot(x, y, "o") or plt.scatter(x, y)?
The tutorial's timeit script measures the gap on your machine.
realpython.com/visualizing-p…
474
Our Black Friday giveaway winner gets everything Real Python publishes over the next three years.
That includes Mentor AI on every page and weekly live Office Hours. Free to enter.
realpython.com/blackfriday?u…
5
1,510
"A swarm of agents can produce more work in a single day than a person can review in our lifetime."
The No AI Slop Manifesto by @dexhorthy, @swyx, @TejasKumar_ and others, born at @aiDotEngineer's Code Summit, pushes back.
Summarized by @philippacsany:
realpython.com/no-ai-slop-ma…
You can read the full manifesto here: slopmanifesto.com
Want to sign it? Leave a comment on this gist with your name, company, or X handle: gist.github.com/dexhorthy
1
445
Claude Code wrote a Python CLI and its tests. All passed.
A fresh session still found a crash and a bad-data bug. What to check and set up when AI writes your Python:
1. A short CSV row
2. required=True and ""
3. A deleted __init__.py
4. Plan mode
5. One CLAUDE.md line
🧵
5. The prompt asking Claude Code for tests never named a framework. CLAUDE.md had one line: "Prefer the standard library."
It's meant to steer Claude Code to unittest over pytest. If it tries to install pytest anyway, press Esc and redirect it.
1
413
Claude Code also flagged that two add commands running at once can interleave CSV rows. Single-user CLI: fix or ship?
The tutorial has the fourth bug and both fixes.
realpython.com/how-to-use-cl…
427
