Код: Выделить всё
sub_scores = {"01": 4, "02": 3, "03": 2}
sub = "01"
excluded = ["02"]
def get_score(sub, sub_scores, excluded):
if sub not in excluded:
return ???
Подробнее здесь: https://stackoverflow.com/questions/798 ... dictionary
Код: Выделить всё
sub_scores = {"01": 4, "02": 3, "03": 2}
sub = "01"
excluded = ["02"]
def get_score(sub, sub_scores, excluded):
if sub not in excluded:
return ???