Al Sweigart on Nostr: Question: In this bit of Python code: for i in range(len(message)): chunk = ...
Question: In this bit of Python code:
for i in range(len(message)):
chunk = some_str[i:i+10]
...
What is a better variable name than "chunk"? I don't want to use "substring" or "submessage". Maybe "message_part"?
Published at
2024-06-13 14:46:32Event JSON
{
"id": "f973d42014df86cef099503be541dec06f802297aac77c7a471d1c8bd003716b",
"pubkey": "89fa96909d343cbebf889f13192e30719623c5102393440d15d51d4b2c08f094",
"created_at": 1718289992,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/AlSweigart/statuses/112609852961156692",
"activitypub"
]
],
"content": "Question: In this bit of Python code:\n\nfor i in range(len(message)):\n chunk = some_str[i:i+10]\n ...\n\nWhat is a better variable name than \"chunk\"? I don't want to use \"substring\" or \"submessage\". Maybe \"message_part\"?",
"sig": "5b91bdbdaba1329654324913df7e9fa01f07fc3f87090ba0b87b3ac480f612d9be9da0ba230318995b7515e1f39547b48b84edde41fbcd8ba35032874fed57f0"
}