Python Professional — Hard
Key points
- The cache key includes both positional and keyword arguments.
- All arguments must be hashable to be used as a cache key.
- This approach allows the function to cache results based on specific input combinations.
Ready to go further?
Related questions
