(no title)
atxbcp | 2 years 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"
erikvdven|2 years ago
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
agumonkey|2 years ago
OJFord|2 years ago
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.