Question: i need it in python The time located for this in 15 minutes. At the end of this period, please in to the next question
The time located for this in 15 minutes. At the end of this period, please in to the next question Otherwise, ma hot tube will the time for the remainston This question is 20 In this program you need to find the total sum of the numbers which are storing at odd indexes in a list. To implement this question, firstly get from the user.nl the total number of the items in list. After getting a value from the user, you can generate 2 random numbers for the starting and ending point of the range of the numbers. Finally, write a function that returns the total sum of the values that are storing at odd indexes. The prototype of the function is findTotalSumstart. end) int You can see the example in the sample output. Do not forget that numbers must be random Sample Output: Enter the number of items: 5 #This number is a user input which shows the total number of the elements of the list Random numbers: start: 15 starting point end: 150 #ending point #After getting n and generating the limits (start and end), call the function find TotalSum(start, end) This function generates items between start and end points. You can see 5 random numbers between 15 and 150. NUMBERS ARE EXAMPLE YOUR NUMBERS MUST BE RANDOM NUMBERS!) List-20, 120, 15.60, 35 Generate n (5) numbers, then show all of them on the console. Total Sum - 180 #Show total sum of the values at odd indexes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
