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 08:30
Today is the anniversary of me being on yet, i don't need it anymore! here's a picture of my dog wearing a bowtie! my question is, how do i delete my account?
Answers: 1
question
Computers and Technology, 22.06.2019 10:00
Which of the following is true of operations within a spreadsheet program’s built-in functions? a. operations within parentheses, then multiplication and division, and then addition and subtraction are computed. b. operations within parentheses, then addition and subtraction, and then multiplication and division are computed. c. multiplication and division, then addition and subtraction, and then operations within parentheses are computed. d. addition and subtraction, then multiplication and division, and then operations within parentheses are computed
Answers: 2
question
Computers and Technology, 22.06.2019 19:20
Amedian in the road will be marked with a white sign that has a black arrow going to the left of the median. true false
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Open this link after reading about ana's situation. complete each sentence using the drop-downs. ana would need a minimum of ato work as a translator. according to job outlook information, the number of jobs for translators willin the future.
Answers: 3
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
History, 09.12.2019 05:31
Questions on the website: 13722361