nixCraft 🐧 on Nostr: Python has for loop syntax with else clause. They also have a while-else construct ...
Python has for loop syntax with else clause. They also have a while-else construct too. Would you use it? #python
Published at
2024-05-22 09:47:20Event JSON
{
"id": "ab38a08522f41b3db1cd23e705218c25cf93cc29b41246080520aa7cd8cf425a",
"pubkey": "9d6742ff43235eb568c0bc55fa8acf7e004ca06a7c9e0c3da2b089a098b769b9",
"created_at": 1716371240,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/@nixCraft/112484105618983330",
"web"
],
[
"t",
"python"
],
[
"imeta",
"url https://files.mastodon.social/media_attachments/files/112/484/103/399/732/119/original/ce05447a6c8b587e.png",
"m image/png"
],
[
"proxy",
"https://mastodon.social/users/nixCraft/statuses/112484105618983330",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://mastodon.social/users/nixCraft/statuses/112484105618983330",
"pink.momostr"
]
],
"content": "Python has for loop syntax with else clause. They also have a while-else construct too. Would you use it? #python\nhttps://files.mastodon.social/media_attachments/files/112/484/103/399/732/119/original/ce05447a6c8b587e.png\n",
"sig": "f3660f25f9488258ddb0f52d30f3765c130d7254a9f392eced73ae7e31600852fd55a73008115c4e9a1f41d58ecc0d33ce06ffa2e3e08ad7dcc8547e216d3ec1"
}