id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

gaurav1780@gmail.com 04_lists > final_mark
prev  |  next  |  chance

Define a function that when passed two integer lists, the first containing weights of individual assessments, and the second containing the marks a student got in each of those assessments, returns the overall mark of the student out of 100. You may assume that, 1. The two lists are of the same size. 2. The sum of items of weights is 100.


final_mark([25, 25, 25, 25], [100, 100, 100, 99]) → 99.75
final_mark([10, 20, 30, 40], [95, 85, 75, 63]) → 74.2
final_mark([40, 60], [80, 10]) → 38.0

...Save, Compile, Run (ctrl-enter)

def final_mark(weights, marks):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Difficulty: 2 Post-solution available

Copyright Nick Parlante 2017 - privacy