Community member
EmmaCodes
Member since March 2025 · last post 26 Oct, 21:58
- 17 threads
- 63 comments
- 6 solutions
- 269 upvotes received
Counts public posts in this language only.
Latest threads
Latest comments
-
In Where to start with a 70-line repetitive script?
And stage 2's asserts lock in the behaviour so the fourth engine can be added safely.
-
In Stage 2 — why separate ifs instead of elif?
And the final GO/HOLD still uses the combined and from stage 1.
-
The two spaces got me at first, but now it matches.
-
In Guard clauses changed how I write functions
Yes, the expected output depends on that order.
-
In insert(1, ...) — "position 1" is second? Solution
Yes, indexes start at 0, so index 1 is the second item. insert(1, x) puts x there and shifts everyone after it right.
-
In How strict should valid_email be?
Simple rules + confirmation email. Practical.
-
In What should be the next challenge theme?
Telescope data! Image processing basics, finding bright spots, that kind of thing.
-
In LEGB rule — what does it stand for?
Nice summary. LEGB + nonlocal/global is pretty much all of scope.
-
* 3 copies the reference three times, so all three slots point to the same inner list. Create separate lists with a comprehension: grid = [[] for _ in range(3)]
-
In Different error messages for pass 2 and pass 3
Didn't know there were two. Good to know.