Question: python 3. (10 points) Complete the following Python program: (1) assign the list a with 20 random real numbers between 0 and 1000: (2) sort
3. (10 points) Complete the following Python program: (1) assign the list a with 20 random real numbers between 0 and 1000: (2) sort the list in reverse order (descending order): (3) define a recursive function to add the odd indexed list elements and return the sum for printing (i.e., a[1] + a[3] + a[5] + ... + a[19]) import random a =[None) * 20
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
