Mike Driscoll

@driscollis
394 Followers
13 Following
1.2K Posts

I write, blog, podcast and more about everything #Python

Writing about Python at https://blog.pythonlibrary.org/ and https://pythonpapers.com/

Teaching at https://teachmepython.com/

Podcasting at https://pythonshow.com/

Author of multiple books, including Python 101

Bloghttps://blog.pythonlibrary.org/
Teach Me Pythonhttps://teachmepython.com/
The Python Showhttps://pythonshow.com/
The Python Papershttps://pythonpapers.com/

#Python Pop Quiz πŸβ“

What is the output of the following code?

A) AttributeError
B) 10
C) 14
D) 7

#Python Pop Quiz πŸβ“

What is the output of the following code?

A) a ['b', 'c']
B) ['a', 'b', 'c']
C) ['b', 'c']
D) None of the above

#Python 101 - How to read a TOML file using a `pathlib.Path` object

#Python Pro Tip 🐍

If you use the uv package manager, don't forget to clean up every so often. You may end free up gigabytes of data on your hard drive!

Python 101: Reading TOML with Python

The TOML (Tom’s Obvious Minimal Language) format came out in 2013, so it’s been around for more than a decade.

The Python Papers

The latest edition of the Python Papers Newsletter is out now!

Learn how to read a TOML document with #Python using the standard library! 🐍πŸ”₯

If you like my #Python content, you might want to check out my Python newsletter.

It's called The Python Papers. You will get at least one email per week with a tutorial, news, a video or perhaps all three!

You can subscribe here:

http://pythonpapers.com

TIL that, as of Python 3.13, virtual environments write their own .gitignore file. It adds a single line, consisting only of `*`.

Did you know this? Are you still adding `.venv/` to your own .gitignore files?

#Python

Did you know that you can add a "hover" effect in pandas when used in Jupyter Notebook?

Here's how:

#Python Pop Quiz πŸβ“

What is the output of the following REPL session?