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 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
Get step-by-step solutions from verified subject matter experts
