Question: Define a list with 2 0 elements and assign the elements with random integers between ( 5 0 , 1 0 0 ) , sort

Define a list with 20 elements and assign the elements with random integers between (50,100), sort the list and print the result. After sorting the list, calculate the sum of the elements at even locations (i.e., a[0]+ a[2]+ a[4]+ a[6]+...+ a[18])(b) Calculate the mean, median, standard deviation of the list. Also, calculate the 2-based logarithm values of the list elements. Hint: use functions in modules statistics and math.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!