Coding Challenge: Performance

Solve the coding challenge to test your knowledge about profiling and performance optimization in Python.

We'll cover the following

Problem

You are given a list of integers and a function sumRec(list) that sums the list. This code is provided below.

Your task is to improve the performance of the function provided. You can see how long it takes to sum the list of 500 integers by doing profiling using the command python -m cProfile perf_test.py.

Get hands-on with 1400+ tech skills courses.