You are assigned to optimize a Python application. Which tool would you use to profile the Python code and find the bottlenecks?

  • cProfile
  • pip
  • pylint
  • pytest

To profile Python code and identify bottlenecks, you would use the cProfile module. It allows you to analyze the execution time of various functions in your code. Options pip, pytest, and pylint are not tools for code profiling.

Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *