3 ms·
I don't think that expression was meant to evaluate to True - they were just reminding themselves that you can increment by an amount using += in Python. This
by aidos 11y ago
I don't think that expression was meant to evaluate to True - they were just reminding themselves that you can increment by an amount using += in Python.
This list of full of basic stuff though, and people who were referring to this would write insainly non-idiomatic Python, but hey, you gotta start somewhere.
When I went to doing Python full time (after having built stuff in it on and off for years) it took me a good 6 months before I was able to write idiomatic Python. That's with over 15 years development experience and actively reading lots of nice Python code to try to reach the same level.
Reading something like this reminds me of the gulf between, "can code in Python" and "writes nice code in Python".