Write a function trapezium_integrator(f, start, end, num_traps) that uses the Trapezium Rule to evaluate the integral ∫endstartf(x)dx where f, start, and end are defined in the formula above, and num_traps is the number of trapeziums that the integration interval should be divided into.

Notes:

You may assume num_traps >= 1
Hint: This should be a simple modification of your code from the last question.
We are still expecting you to compute the width of each trapezium and then use a for loop to solve this problem, iterating over the trapeziums to sum their areas. A more efficient approach, using numpy and avoiding any explicit loops, is the topic of one of the challenge questions.