streetyogi on Nostr: The `_` character has quite some meaning in Python: - Can be used as thousands ...
The `_` character has quite some meaning in Python:
- Can be used as thousands separator
- recalls the last value in the Python interpreter
- final clause in match statement
- prevents variables starting with _ from being imported with import *
- gettext translation function in built-in namespace
Mostly you will read that Python is easy to learn and `_` just a valid character for a variable name.
Published at
2023-03-27 03:35:27Event JSON
{
"id": "8b9a357f2b612dfa1ef02e41593263775073b093e9d9e9daf19f2136739d7c85",
"pubkey": "9f2506778c6fe471f56f1dd83b43b4d3b8e1fadadaf378840b4cdd39ed66e20b",
"created_at": 1679888127,
"kind": 1,
"tags": [],
"content": "The `_` character has quite some meaning in Python:\n\n- Can be used as thousands separator\n- recalls the last value in the Python interpreter\n- final clause in match statement\n- prevents variables starting with _ from being imported with import *\n- gettext translation function in built-in namespace\n\nMostly you will read that Python is easy to learn and `_` just a valid character for a variable name.",
"sig": "85fb0e982226785b14a4315eaac995c5a1b6a6ef21294d62f0c14b2e3ad82a17778fc143722e1172816d63092007543bfa68319f525b01887e642ef9e77fcd7c"
}