31. Quiz: Python Performance Optimization: A Practical Guide (realpython.com)
In this quiz, you’ll test your understanding of Python Performance Optimization: A Practical Guide. By working through this quiz, you’ll revisit how to confirm a bottleneck with timeit, why a set beats a list for membership tests, how built-ins push work down into C, and when functools.cache is safe...