## (Solved) Write a program named program71.py as follows. Follow instructions carefully to avoid point deductions. In the main function: create an empty list...

Â Write a program named program71.py as follows. Follow instructions carefully to avoid point deductions.

In the main function:

• create an empty list named nums.
• use a loop to add 10 random integers, all in the range from 1-25, to the list.
• use another loop to display the numbersÂ all on the same line, separated by a single space.
• sort the list.
• use another loop to display the sortedÂ numbersÂ all on the same line, separated by a single space.
• make a new list named startÂ by slicing out the first 4 elements of the sorted nums list.
• print the start list.
• make a new list named finishÂ by slicing out the final 5 elements of the sorted nums list.
• print the finish list.
• execute the odd_even function (defined next) with sortedÂ nums as its sole argument.

Inside the odd_evenÂ function:

• process the list and output the number of even and odd elements.
• display the 6th element in the list.

Solution details:
STATUS
QUALITY
Approved

This question was answered on: Sep 05, 2019

Solution~000200147862.zip (25.37 KB)

This attachment is locked

We have a ready expert answer for this paper which you can use for in-depth understanding, research editing or paraphrasing. You can buy it or order for a fresh, original and plagiarism-free solution (Deadline assured. Flexible pricing. TurnItIn Report provided)

STATUS

QUALITY

Approved

Sep 05, 2019

EXPERT

Tutor