New screencast on commonly overlooked features of Python's print() function.
Did you know you can print() to a file?
Also print() can sometimes act as an alternative to combining the string join method with a generator expression.
https://pym.dev/print-features/
Meet our first keynote speaker: Dawn Wages!
Chair of the Python Software Foundation, Wagtail Core Team powerhouse, and Anaconda's Director of DevRel and Community.
Secure your spot now: https://za.pycon.org/tickets
@BajoranEngineer #PSF #Python #PyConAfrica #wagtail #anaconda

Meet our first keynote speaker: Dawn Wages!
Chair of the Python Software Foundation, Wagtail Core Team powerhouse, and Anaconda's Director of DevRel and Community.
Secure your spot now: https://za.pycon.org/tickets
@BajoranEngineer #PSF #Python #PyConAfrica #wagtail #anaconda

Building a square wave with a #Fourier series of odd harmonics under #Python #51
#!/usr/bin/python3
import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(0, 2*np.pi, 1000)
def square_wave_series(x, n_terms):
y = np.zeros_like(x)
for k in range(1, n_terms+1):
n = 2*k - 1 # odd numbers: 1,3,5,...
y += np.sin(n*x)/n
return (4/np.pi) * y
colors = ["blue", "green", "yellow", "orange", "red"]
for i, n in enumerate([1, 2, 3, 4, 5]):
y = square_wave_series(x, n)
plt.plot(x, y, color=colors[i], label=f"{2*n-1} harmonics")
plt.legend()
plt.title("Fourier Series Approximation of a Square Wave")
plt.grid(True)
plt.show()

You’re probably using uv wrong: https://lerner.co.il/2025/08/28/youre-probably-using-uv-wrong/
uv vs pip: Managing Python Packages and Dependencies: https://realpython.com/uv-vs-pip/
WIP (broken rotation elimination implementation) Code at: https://github.com/villares/sketch-a-day/tree/main/2025/sketch_2025_09_03
More sketch-a-day: https://abav.lugaralgum.com/sketch-a-day
If you like this, support my work:
https://www.paypal.com/donate/?hosted_button_id=5B4MZ78C9J724
https://liberapay.com/Villares
https://wise.com/pay/me/alexandrev562 #Processing #Python #py5 #CreativeCoding

Building Pygame Enemies in Shadow Switcher Development
#Pygame #C64 #ShadowSwitcher #Python #RetroGaming
https://theoasisbbs.com/building-pygame-enemies-in-shadow-switcher-development/?feed_id=5166&_unique_id=68b98f0278358
The latest episode of The Python Show Podcast is out now!
Listen in as I chat with Paul Everitt about the beginnings of the #Python language, the new Python documentary, and much more!

Un par de cursos de Youtube sobre programación https://myblog.clonbg.es/un-par-de-cursos-de-youtube-sobre-programacion/ #Programación #VueJs #Python https://clonbg.es

There is a CLI module buried in the Python Streamlit package that can be used to run a Streamlit app from within Python code. Not sure if its use is officially supported but this seems to be the only way to run a Streamlit app from within Python code. https://gavinw.me/notes/python/streamlit-cli.html #Python #Streamlit
Ask your data natural-language questions in R or Python with the querychat package! Bonus: You never send that data to an LLM.
My step-by-step InfoWorld tutorial using NFL game data (first day of the season tonight!) as an example:
https://www.infoworld.com/article/4040535/chat-with-your-data-the-easy-way-in-r-or-python.html
#RStats #Python #InfoWorld #RShiny