What does functools.lru_cache do in Python?
Correct answer
C. Memoizes function results
6 views
C. Memoizes function results
6 views
lru_cache stores recent results to avoid recomputation.
Asked in: Python Interview Advanced Python
https://docs.python.org/3/library/index.htmlNot sure why the answer is C? Ask here and get an explanation.