Python Tip: enumerate() with start
items = ['a', 'b', 'c']
for i, item in enumerate(items, start=1):
print(f'{i}. {item}')
# 1. a 2. b 3. c
enumerate() has a start parameter. No more manual counter variables.
https://raccoonette.gumroad.com/l/Python-for-Beginners-From-Zero-to-Your-First-Projects
#Python #CodingTips #Programming
Python Tip: Type Hints for Clarity
def greet(name: str, times: int = 1) -> str:
return (f'Hello, {name}! ' * times).strip()
result: str = greet('World', 3)
Type hints make code self-documenting and enable IDE autocomplete. Your future self will thank you.
https://raccoonette.gumroad.com/l/Python-for-Beginners-From-Zero-to-Your-First-Projects
#Python #CodingTips #Programming
Python Tip: Context Managers
from contextlib import contextmanager
@contextmanager
def timer():
start = time.time()
yield
print(f'Took {time.time()-start:.2f}s')
with timer():
heavy_computation()
Create your own context managers with @contextmanager. Clean resource management and timing.
https://raccoonette.gumroad.com/l/Python-for-Beginners-From-Zero-to-Your-First-Projects
#Python #CodingTips #Programming
Python Tip: Walrus Operator :=
# Assign AND test in one line
if (n := len(data)) > 10:
print(f'Too long: {n}')
The walrus operator (:=) assigns a value and returns it. Perfect for avoiding redundant...
https://raccoonette.gumroad.com/l/Python-for-Beginners-From-Zero-to-Your-First-Projects
#Python #CodingTips #Programming
Wie erfolgreich war die #Energieerzeugung meines #Balkonkraftwerks?
Am Ende jeden Monats wird hier automatisch ein #Säulendiagramm getrötet, das die monatliche #Energieerzeugung mit der #Ertragsprognose vergleicht. Wie man mit Vibe Coding ein #Python-Skript erstellt, das die #Wechselrichterdaten und #Prognosedaten auswertet und die Grafik erstellt, erfahrt ihr im Artikel. 😀
#Steckersolar #PVGIS #Datenvisualisierung #VibeCoding
Learning how to program is fun, the math aspect of it is a bit difficult for me though.
I am personalizing my lessons in the hopes of retaining something worthwhile before moving on to learning Python proper.
That is when I will begin to practice little, medium, and large projects!
Perl Weekly Challenge 363's tasks are "String Lie Detector" and "Subnet Sheriff".
I challenge anyone to not think of I Shot The Sheriff given those tasks.
#PerlWeeklyChallenge #raku #perl #python #elixir
Perl Weekly Challenge: I Shot ...
Season 1 Lesson 7 Part 1 - Your First Steps - Do you know how to show - Number Signs in Python #vibecoding #pythonprogramming #codingtutorial #softwaredeveloper #jupyternotebook #dataanalysis #learncoding #pythoncode #python #dataengineer
Habe gerade spontan 2 #python lerncodes geübt. Der 2 war dem ersten sehr ähnlich es wurde nur eine Kleinigkeit hinzugefügt. So konnte ich etwas interessantes erfahren. Was mir vorher noch nicht bewusst war. Aber ich lerne ja auch noch alles. Interessant was man alles durch Training lernen kann.
Wallabako retirement and Readeck adoption https://anarc.at/blog/2026-03-05-wallabako-retirement #wallabako #debian-planet #python-planet
An interesting #licence war is happening in the #Python world.
The popular `chardet` package has apparently been re-written (by assistance of the Claude #LLM). Undergoing this *version* change to v 7.0.0 the current maintainer has shifted the licence away from the #LGPL to the more permissive MIT licence.
I'm not a lawyer, and I don't know about the deeper backgrounds. While a complete clean slate implementation may justify a different licence, I don't think that anyone who's been maintaining a package for years can claim complete lack of influence on the existing code base. So a licence change from one version to another without consent of the (original) contributors seems wildly inadmissible.
Additionally, if the author claims a complete re-write using Claude, in many jurisdictions (including the US) AI generated content cannot be IP protected. So in that case he'd have had to remove the #copyright (c) claim to his name as well to be at least consistent with the narrative.
This is completely independent of the authenticity of the supposed statement by Mark Pilgrim (original author) of `chardet`.
I'm interested to hear what others think ...
https://www.theregister.com/2026/03/06/ai_kills_software_licensing/
#license #GenAI #IntellectualProperty
Roblox is hiring Principal Enterprise Applications Engineer
🔧 #golang #python #api #terraform #principalengineer
🌎 San Mateo, California
⏰ Full-time
🏢 Roblox
Job details https://jobsfordevelopers.com/jobs/principal-enterprise-applications-engineer-at-roblox-com-mar-4-2026-c29435?utm_source=mastodon.world&utm_medium=social&utm_campaign=posting
#jobalert #jobsearch #hiring