Question: Hi pleasee help I already posted twice.Please help do task 2? Task 2 If you include the code: import timeit you can use the call

Hi pleasee help I already posted twice.Please help do task 2?
Task 2 If you include the code: import timeit you can use the call timeit.default timerO to compute the elapsed time as follows start timeit. default timer ) # do whatever you are doing that you need to time taken = (tineit.default-timer() - start) 1. Extend sum items.py and write a Python function time sumitems (alist) that returns the time taken to call sum items. 2. Write a Python function table time_sum itemsO that does the following: . For n = 2, 4, 8, 16 and so on up to 1,024 Creates a random list, alist of reals between o and 1, whose length is n. (You will need to import the module random, and use the functions random, seed() and random, random O. Prints on a newline n and the value of time sum items (a list) To understand why we need to se the generator please have a look at video: https://www.youtube.con/ watch?v-itaMNuwLzJo
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
