Checking out #shapely's `make_valid` that @hx2A told me about recently! very cool!
Code at: https://github.com/villares/sketch-a-day/tree/main/2025/sketch_2025_10_14
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
Code at: https://github.com/villares/sketch-a-day/tree/main/2025/sketch_2025_10_13
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

#AI #BigData #Python #Spark #Kafka #PostgreSQL
TIL Python and Taylor Swift were born the same month (December 1989). #Python #TaylorSwift
Parse boolean expressions and build a truth table with #Python #TN
#!/usr/bin/python3
import sys
from sympy.logic.boolalg import truth_table
from sympy import sympify
expr_str = sys.argv[1]
try:
expr = sympify(expr_str)
except Exception as e:
print("Error parsing expression:", e)
sys.exit(1)
vars_in_expr = sorted(expr.free_symbols, key=lambda s: s.name, reverse=True)
table = truth_table(expr, vars_in_expr)
print(' '.join(str(v) for v in vars_in_expr), ':', expr_str)
for vals, result in table:
print(' '.join(str(v) for v in vals), ':', int(bool(result)))

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

Well, PyPI uses HCaptcha. So no registration for me. #a11y #python
Swapping Variables in Python 🐍
How does swapping variables using a,b = b,a work in Python?
R1: Pack a and b into a temporary tuple (b,a).
R2: Assign the first tuple item to a.
R3: Assign the second tuple item to b.
🎥 Free Python beginners YouTube course: https://www.youtube.com/watch?v=bLSTVnkDfUg
#python #programming #coding #code #computerscience
