's Avatar

@teachmepython.bsky.social

261 Followers  |  132 Following  |  516 Posts  |  Joined: 21.11.2024  |  2.0171

Latest posts by teachmepython.bsky.social on Bluesky

Lesson 3 - Writing Excel
Learn how to write Excel files using Python and OpenPyXLThis video is from my video course, Automating Excel with Python:https://driscollis.gumroad.com/l/exc... Lesson 3 - Writing Excel

Here's the link:

www.youtube.com/watch?v=HQz...

16.02.2026 19:11 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Check out my #Python video that I posted to YouTube over the weekend.

In it, I teach how to use Python and OpenPyXL to create Excel spreadsheets

16.02.2026 19:11 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image Post image

Creating the Olympics symbol with #Python and the turtle module 🐍🐒πŸ”₯

16.02.2026 14:57 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
An AI Agent Published a Hit Piece on Me Summary: An AI agent of unknown ownership autonomously wrote and published a personalized hit piece about me after I rejected its code, attempting to damage my reputation and shame me into acceptin…

AI writes a blog post against a maintainer after getting a matplotlib PR rejected

#Python @matplotlib #AI

theshamblog.com/an-ai-agent...

12.02.2026 19:38 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

#Python lets you play sounds on Windows using the built-in `winsound` library 🐍πŸ”₯

No, this is NOT a music file player. Instead, it allows you to play back sounds using different frequencies. Check it out!

11.02.2026 14:02 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
Python Basic Type Hinting When Python first added type hinting to the language in version 3.5, you could only add type hints to functions.

Join almost 9000 other subscribers here:

www.pythonpapers.com/p/python-ba...

10.02.2026 23:02 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

The latest edition of The Python Papers newsletter is out now! Learn about basic Python type hinting in today's issue!

10.02.2026 23:02 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

You can even convert decimal numbers to fractions using Python's fractions module, although you might end up with some rather weird ones:

10.02.2026 20:05 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Did you know that you can create fractions in #Python using the built-in fractions module?

Here's an example:

10.02.2026 20:05 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

One way to convert a dictionary into an object in #Python

09.02.2026 19:03 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Here's a list of the #Python keywords

It's nice that the number is so small that you can actually probably remember all of them fairly easily.

09.02.2026 16:51 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 2    πŸ“Œ 1
Post image

How to use #Python's `next()` method and `enumerate()` to determine how much whitespace there is at the beginning and the end of a string.

Yes, this is over-engineered and silly code 🐍🀑

06.02.2026 17:59 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image Post image

How to create a random plot with #Python and pandas 🐍🐼

06.02.2026 16:16 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Python Typing Book Type Checking for Python Programmers

You can learn more here:

www.kickstarter.com/projects/dr...

03.02.2026 18:59 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

I'm working on a new #Python book about type hinting. Get in early to help fund the book and get early access!

03.02.2026 18:59 β€” πŸ‘ 5    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
Root Brew Review | Mike Driscoll | Substack Learn all about root beer here! Click to read Root Brew Review, by Mike Driscoll, a Substack publication. Launched 20 days ago.

And now for something completely different. I don't only write about #Python

I have also started writing about one of my silly hobbies: reviewing root beers and related drinks.

Feel free to follow along if you like that sort of thing:

www.rootbrewreview.com/

26.01.2026 20:27 β€” πŸ‘ 1    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Video thumbnail

The #Python turtle module can do some crazy stuff 🐍🐒

23.01.2026 20:59 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Using semicolons in #Python just for fun

23.01.2026 16:04 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Check out the latest edition of the Python Papers Newsletter, where I talk about Python introspection!

open.substack.com/pub/pypaper...

22.01.2026 13:38 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

You can set the metaclass of a class explicitly like this:

21.01.2026 14:03 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

You can also check a class's metaclass via an instance of the class.

To get the metaclass from a class instance, you can access `.__class__.__class__`

Note that you can go even further, although that's just silly

21.01.2026 14:03 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

Do you know how to check the metaclass of a class in #Python?

Well, one way to do it is to pass the class itself to Python's `type()` function

In the following example, Animal's metaclass is type:

21.01.2026 14:03 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
Creating TUI Applications with Textual and Python Learn how to create text-based user interfaces (TUIs) using Python and the amazing Textual package.Textual is a rapid application development framework for your terminal or web browser. You can build complex, sophisticated applications in your terminal. While terminal applications are text-based rather than pixel-based, they still provide fantastic user interfaces.The Textual package allows you to create widgets in your terminal that mimic those used in a web or GUI application.Creating TUI Applications with Textual and Python is to teach you how to use Textual to make striking applications of your own. The book's first half will teach you everything you need to know to develop a terminal application.The book's second half has many small applications you will learn how to create. Each chapter also includes challenges to complete to help cement what you learn or give you ideas for continued learning.Here are some of the applications you will create: A basic calculator A CSV viewer A Tex

You can get this book for 15% off until the end of the month

driscollis.gumroad.com/l/textual/e...

19.01.2026 20:46 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Learn how to create an amazing TUI application with #Python and textual today

19.01.2026 20:46 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

I am thinking about writing a short book on #Python type hinting to help me remember all the various rules and provide examples for the common and somewhat uncommon cases.

Would you be interested in that sort of thing, or do you prefer just letting AI do it?

16.01.2026 16:31 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Vibe Coding Video Games with Python Welcome to Vibe Coding Video Games with Python. In this book, you will learn how to use artificial intelligence to create mini-games. You will attempt to recreate the look and feel of various classic video games. The intention is not to violate copyright or anything of the sort, but instead to learn the limitations and the power of AI.Instead, you will simply be learning about whether or not you can use AI to help you know how to create video games. Can you do it with no previous knowledge, as the AI proponents say? Is it really possible to create something just by writing out questions to the ether?You will use various large language models (LLMs), such as Google Gemini, Grok, Mistral, and CoPilot, to create these games. You will discover the differences and similarities between these tools. You may be surprised to find that some tools give much more context than others.AI is certainly not a cure-all and is far from perfect. You will quickly discover AI’s limitations and learn some st

You can also get the book on Gumroad with a discount:

driscollis.gumroad.com/l/vibegames...

15.01.2026 23:01 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Vibe Coding Video Games with Python Vibe coding video games with Python, pygame and AI

You can get it on @leanpub for a discount today using the following link:

leanpub.com/vibegames/c...

15.01.2026 23:01 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
New Book: Vibe Coding Video Games with Python My latest book, Vibe Coding Video Games with Python, is now available as an eBook.

You can learn more about the book here:

www.pythonpapers.com/p/new-book-...

15.01.2026 23:01 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

My latest #Python book is now available in digital format

15.01.2026 23:01 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
How to Type Hint a Decorator in Python Decorators are a concept that can trip up new Python users.

Read and subscribe here:

www.pythonpapers.com/p/how-to-ty...

06.01.2026 19:31 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@teachmepython is following 19 prominent accounts