Re: Python
rbowman <[email protected]> 18 Dec 2025 06:54:30 GMT
| Newsgroups | comp.os.linux.misc,alt.folklore.computers,comp.lang.python |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 17 Dec 2025 23:02:24 -0500, c186282 wrote: > Oh, I usually write "i=i+2". It's a bit more clear and becomes the > same code anyway. += is more a 'C' thing. And Python, C#, JavaScript, C++, ... https://peps.python.org/pep-0008/ "assignment (+=, -= etc.), comparisons (==, <, >, !=, <=, >=, in, not in, is, is not), Booleans (and, or, not)." There's some benighted language that does not have += etc. Maybe R. I looked at that briefly before deciding anything I could do in R I could do in Python without learning new weirdness.