Question: PYTHON PROGRAMMING DO NOT USE ANY KINDS OF LOOP (FOR AND WHILE) Restrictions:i 1. Do not use LOOPS (for & while) 1. Calculating your assignment
PYTHON PROGRAMMING
DO NOT USE ANY KINDS OF LOOP (FOR AND WHILE)

Restrictions:i 1. Do not use LOOPS (for & while) 1. Calculating your assignment grade. Write a Python function assignment_mark that consumes a list of assignment grades (called grades), and returns a floating point value between 0.0 and 100.0, inclusive, for the overall assignment mark. Individual assignment grades are either an integer value between 0 and 100, inclusive, or the string ' x' In calculating the assignment grade, note the following: .The 'x' entries are ignored, as this indicates that the student was ill and the assignment is not to be considered when calculating the assignment mark. The final assignment is worth double, so treat it as two assignment grades in calculations. student cannot be excused from the last assignment, so the last entry in the list will never be 'x', The lowest assignment grade (not counting the last assignment or 'x' grades) is dropped. In the A case of ties, just one of these is dropped. While we will have 9 assignments this term, grades may be longer. You can assume that there will e be at least three non-excluded assignments, including the last one. Do not perform any rounding on the calculated assignment grade, but remember to use check.within for your testing. The function will return the average of all assignments, other than the excluded and minimum grade while counting the final assignment as two assignments. The list grades is not changed by the function. For example assignment_ mark ([100, 82, 'x', 75, 45, 'x', 801) 83.4 The returned value is the average of 100, 82, 75, 80, 80, as 45 is dropped as the lowest grade, 'x' values are ignored, and the final assignment is counted as two assignments
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
