Ned Batchelder on Nostr: Advice for new #Python learners: break the habit of starting every for loop with `for ...
Advice for new #Python learners: break the habit of starting every for loop with `for i in`: there is probably a much better name for your iteration variable than `i`.
Published at
2026-05-27 17:00:50 UTCEvent JSON
{
"id": "ee635730130aa337a7ab520bffdae92218b7f37c010bf9409bd0dfd9f7e95665",
"pubkey": "3c1a5dbc82cfc12f65f6bd9e283d71bd4a6f1ca853640666cfd5c856037806b1",
"created_at": 1779901250,
"kind": 1,
"tags": [
[
"t",
"python"
],
[
"proxy",
"https://hachyderm.io/users/nedbat/statuses/116647608329206101",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.ditto.pub"
]
],
"content": "Advice for new #Python learners: break the habit of starting every for loop with `for i in`: there is probably a much better name for your iteration variable than `i`.",
"sig": "2cc66123dd1a12df7962f40f618f1e454b0dca568fe5be3048bf7d1d56743b9734927c65230bf325ad6eab5e26720a3190dd8b7b8ce6acd966a67434fac76154"
}