Question: Using Python, define a list with 20 elements and assign the elements with random real numbers between (50,100), sort the list and print the result.

 Using Python, define a list with 20 elements and assign the

Using Python, define a list with 20 elements and assign the elements with random real numbers between (50,100), sort the list and print the result. After sorting the list, calculate the sum of all even-number indexed elements (i.e., a[0] +a[2]+a[4]+a[6]++a[18])

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 Databases Questions!