Ned Batchelder on Nostr: You can write short powerful #Python expressions using its many tools. Are there ...
You can write short powerful #Python expressions using its many tools. Are there other ways to check if a string contains only "0" or "1"?
Published at
2024-12-01 16:02:30Event JSON
{
"id": "da9d4e55288f8fbe91584249d88fc683f43ba5ab4fd96225e640ebdb18ff7555",
"pubkey": "3c1a5dbc82cfc12f65f6bd9e283d71bd4a6f1ca853640666cfd5c856037806b1",
"created_at": 1733068950,
"kind": 1,
"tags": [
[
"t",
"python"
],
[
"imeta",
"url https://media.hachyderm.io/media_attachments/files/113/578/406/598/554/875/original/8247ff6c5526caa6.png",
"m image/png",
"dim 880x566",
"blurhash U37Ue;_MDADkKFM{jcxu00D%%dt7%gx]i}M{"
],
[
"proxy",
"https://hachyderm.io/users/nedbat/statuses/113578406735752229",
"activitypub"
]
],
"content": "You can write short powerful #Python expressions using its many tools. Are there other ways to check if a string contains only \"0\" or \"1\"?\n\nhttps://media.hachyderm.io/media_attachments/files/113/578/406/598/554/875/original/8247ff6c5526caa6.png",
"sig": "8f73d2c7f065d653d553c3a0c00f1d93cf116881313824113e556d75e89b4495c5532bd5b0d0a0bf3b677daffa773ee29a528be5c7fa532b7f34cdeade28bbba"
}