15 lines
373 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

class Assignment:
"""Задание."""
def __init__(self, weight: float, values: tuple):
self.weight = weight
self.values = values
@property
def total(self) -> float:
"""Получить общую оценку по заданию.
`вес*СУММ(рез-ты)`
"""
return sum(self.values) * self.weight