d = {}
class JOB:
def post_vacancy(self, company, salary, min_exp):
self.company, self.salary, self.min_exp = company, salary, min_exp
d[company] = salary, min_exp
def update_salary(self, company, new_salary):
self.company, self.new_salary = company, new_salary
d[company] = new_salary
Требуется заменить значение salary на new_salary, при этом сохранив значение min_exp
old_salary, min_exp = d[company]
d[company] = new_salary, min_exp