6 ms·
- none of these functionalities are "overlooked", this is pretty basic python - for fibonacci you have a decorator for memoization (functools cache / lru_cach
by atxbcp 3y ago
- none of these functionalities are "overlooked", this is pretty basic python
- for fibonacci you have a decorator for memoization (functools cache / lru_cache)
- you don't need to use parenthesis for a single line "if"
- agumonkey 3y agoYou consider these 'basic' python ? just curious, I'd say it's a bit below intermediate.
- OJFord 3y agoAt the point we're disagreeing about 'basic' vs. 'bit below intermediate'.. idk we at least have to agree how many levels the model has. Fwiw I also thought it was pretty regular stuff, and then arcane library functions you've either needed or you haven't. Also, that's a generator, not a list comprehension.
- elteto 3y agoOne man's basic is another man's low intermediate.... but I agree that none of these seem overlooked to me,. They are pretty basic things once you get past the few chapters of your first python book.
- erikvdven 3y agoYou are very much right a lot of it is pretty basic knowledge. From my experience though, a lot of python developers don't take the python docs or tutorial as first resource, and quite some developers I met did lack quite some knowledge I mentioned in the article. You are right about the fibonacci operator, I thought I did refer to another article where I mention the lru_cache as well :) But I'll double check. Good one about the parenthesis! I'll post an update soon