subject

Can i get a python code for this ? 1. populate a list of size n = 25 with random integers in the range 10 60 inclusive but do not include any duplicates. the list of n integers should include only unique values strategy generate a random integer (1) if it not in the list add the integer to the list (see the python in operator) else return to (1) and generate another random integer use the fill() function in the template below but note it has to be modified to eliminate duplicates 2. display the list using the display() function. but with 5 integers per line (total of 5 lines) 3. display the list in sorted order (largest to smallest) by calling sortdescending 4. display the sum of all the integers in the list using your sum() function 5. display the minimum integer in the list using your minvalue() function min 6. display the maximum integer in the list using your function maxvalue() 7. display the average of the integers in the list using your function ave() 8. display the number of even integers using your function evens() and 9. display the number of odd integers (use function odds() ) 10. display the number of integers in the list that have 1 as their first digit i. e how many integers are of the form 1x using the function digit1xx() 11. display the number of integers in the list that have 1 as their last digit i. e how many integers are of the form x1 using the function digitxx1() 12. display the number of integers in the list that are divisible by 3 evenly with no remainder ( if x % 3 == 0 count the integer ) using function div3() 13. ask the user for an integer and display the number of times the integer appears in the list by calling the ncount() function hint: see the count function in lab 06 14. print the median call median() function 15. display the average of the largest and smallest integers in the list use your maxvalue() and minvalue() functions use the maxminave()

n = 25
a = 10
b = 60
myarray = []
myarray = fill (myarray, n,a, b)
display(myarray)

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:30
The "instance" relationship shows that something is an object of a
Answers: 1
question
Computers and Technology, 22.06.2019 19:00
Which parts of a presentation should be the most general? a. introduction and conclusion b. introduction and outline c. outline and conclusion d. outline and body
Answers: 1
question
Computers and Technology, 23.06.2019 00:20
The open systems interconnection (osi) reference model: defines standards for many aspects of computing and communications within a network. is a generic description for how computers use multiple layers of protocol rules to communicate across a network. defines standards for wireless local area network (wlan) communication protocols. details the advantages and disadvantages of various basic network cabling options.
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
*! 20 points! *jeff wants to create a website with interactive and dynamic content. which programming language will he use? a. dhtml b. html c. css d. javascript
Answers: 1
You know the right answer?
Can i get a python code for this ? 1. populate a list of size n = 25 with random integers in the ra...
Questions
question
English, 04.02.2021 15:00
question
English, 04.02.2021 15:00
question
Biology, 04.02.2021 15:00
question
Mathematics, 04.02.2021 15:00
question
English, 04.02.2021 15:00