subject

Please, someone help me with this PYTHON code. I would be very thankful! One computer science teacher concludes grades by discarding the highest and lowest grades before calculating the average grade, and the average of the calculations based on the remaining grades. Write the function average_without_extreme (grade) which calculates the average grade for the list of grades that a student received from computer science in the described way. Write a function body, then check how the function works. (Instructions: You can solve the task using the standard functions sum, min, max and len)
This is an instruction
The position - index of the highest and lowest value must be determined.
When comparing the value of, for example, the largest with the values of the elements, and when the moment is reached when the condition is correct (when the largest is equal to the element), then the following elements are placed on the index i-1

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:10
3. (5 points) describe what would be printed by the code below or what error would occur. const char* cstr = "0123456"; const char* ptr = & cstr[4]; cout < < ptr[-1] < < ptr < < endl; 1 4. (5 points) theseus has been trapped in a maze with a minotaur, which is trying to capture him. each round, theseus and the minotaur move through the maze; theseus towards the exit, and the minotaur towards theseus. theseus can move in any of the four cardinal directions, or he can wait for a round to see how the minotaur moves. write code that creates a data type to represent the possible moves that theseus could make.
Answers: 3
question
Computers and Technology, 22.06.2019 10:30
Choose the best explanation for the following statement communication is symbolic
Answers: 3
question
Computers and Technology, 23.06.2019 01:50
Write a program that uses a random number generator to generate a two digit positive integer and allows the user to perform one or more of the following operations: a. double the number. b. reverse the digits of the number. c. raise the number to the power of 2, 3, or 4. d. sum the digits of the number. e. if the number is a two-digit number, then raise the first digit to the power of the second digit. f. if the number is a three-digit number and the last digit is less than or equal to 4, then raise the first two digits to the power of the last digit. after performing an operation if the number is less than 10, add 10 to the number. also, after each operation determine if the number is prime. each successive operation should be performed on the number generated by the last operation. your program should not contain any global variables and each of these operations must be implemented by a separate function. also, your program should be menu driven. 7. (fraction calculator) write a program that
Answers: 1
question
Computers and Technology, 23.06.2019 04:31
Selling a product through an electronic medium is
Answers: 1
You know the right answer?
Please, someone help me with this PYTHON code. I would be very thankful! One computer science teach...
Questions
question
Mathematics, 01.12.2019 07:31
Questions on the website: 13722361