teachmepython.bsky.social
@teachmepython.bsky.social
How to use OpenPyXL to convert an Excel to a CSV file 🐍⚡
November 13, 2025 at 1:30 PM
#Python power using the built-in `pow()` method

pow(base, exponent)
November 12, 2025 at 7:56 PM
How to get the minimum and maximum values of a sequence in #Python using built-in functions.

Note that both functions also have a handy default parameter you can set if the sequences are empty
November 11, 2025 at 9:37 PM
The latest edition of The Python Papers Newsletter is out!

Learn about #Python conditional statements today!
November 11, 2025 at 5:57 PM
Last week, I mentioned a neat way to plot in your terminal with #Python

But there are other terminal plotting libraries too. For example, you can plot with Textual if you get the textual-plot package.

Here's an example:
November 10, 2025 at 2:35 PM
Speaking of plotting sine waves with #Python, here's another example that uses the uniplot package.

Uniplot is a plotting library for your terminal
November 6, 2025 at 9:36 PM
Do you need to change your #Python script's return code depending on whether it fails or not?

Use Python's `sys` module! 🐍🤘

Here's how to do it:
November 6, 2025 at 2:16 PM
How to create a sine wave with #Python using the Bokeh and numpy packages 🐍🔥
November 5, 2025 at 6:54 PM
The latest edition of the Python Papers newsletter is hot off the press

Learn about Python's numeric types in today's article!

open.substack.com/pub/pypaper...
Python 101 - Numeric Types
Python is a little different than some languages in that it only has three built-in numeric types.
www.pythonpapers.com
November 5, 2025 at 2:06 PM
Oxylabs is a well known web scraping company with ten years experence.

They have created a #Python web scraper package. You can use Oxylabs to get data from e-commerce websites, search engines, real estate platforms, and more.

Here's a simple example of scraping Bing search results:
November 4, 2025 at 6:02 PM
Which version of Linux did you start with and which one do you use now?
November 4, 2025 at 2:10 PM
How to create a line plot with matplotlib and #Python
November 3, 2025 at 4:45 PM
One way to make dinosaurs in your strings with #Python
October 31, 2025 at 4:56 PM
How to change the DPI in your images using #Python and Pillow
October 31, 2025 at 12:48 PM
If you're new to #Python, then you might not know there are some fun Easter eggs in the language! 🐍🥚

Here's the most famous of them: import this
October 29, 2025 at 3:10 PM
The latest edition of The Python Papers Newsletter is out now!

Learn about how to add markup in your terminal UIs using #Python and Textual!
October 29, 2025 at 1:20 PM
Need to control decimal precision using string interpolation in #Python?

The magic of f-strings can do that! 🐍🎩
October 29, 2025 at 9:02 AM
How to upload a file over SSH using #Python and paramiko 🐍🔥
October 29, 2025 at 4:01 AM
How to find faces in photos using #Python and OpenCV
October 28, 2025 at 8:37 PM
Python's "walrus" operator allows you to assign values to variables within an expression

Here are some examples:
October 27, 2025 at 5:01 PM
#Python has thousands of great third-party packages.

One neat package is Pint, which converts between different unit types.

Here's an example:
October 27, 2025 at 1:21 PM
#Python f-strings are super handy, but did you know you can do datetime formatting inside of them?
October 24, 2025 at 5:00 PM
How to rotate an image with 4️⃣ lines of #Python code! 🐍🔥
October 24, 2025 at 1:35 PM
When you run Python 3.14's REPL in your terminal, you will find that it now includes syntax highlighting!

Super cool stuff! 🐍🔥
October 24, 2025 at 8:58 AM
You don't need this often in #Python, but using chained comparisons can be handy every so often
October 23, 2025 at 9:57 PM