Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Wildly simplified version
- total_score = sum(
- block.weight * block.earned_score,
- for block in assignment.children()
- if block.has_score
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement