if __name__ == '__main__': technologies = ['python', 'js', 'html', 'css'] recruiter_anna = Recruiter('Anna', "*****@*****.**", 50) programmer_oleg = Programmer('Oleg', "*****@*****.**", 100) programmer_vasya = Programmer('Vasya', "*****@*****.**", 75) candidate_grisha = Candidate('Grisha Vetrov', '*****@*****.**', technologies, 'Python', 'Middle') candidate_petya = Candidate('Petr Vetrov', '*****@*****.**', technologies, 'Python', 'Junior') candidate_kolya = Candidate('Kolya Ivanov', '*****@*****.**', technologies, 'Python', 'Senior') vacancy_python_middle = Vacancy('Python Middle on Project 1', 'Python', 'Middle') vacancy_python_senior = Vacancy('Python Senior on Project 2', 'Python', 'Senior') print(programmer_oleg.work()) print(programmer_vasya.check_salary(15)) print(programmer_oleg.__str__()) print(recruiter_anna.work()) print(recruiter_anna.check_salary(15)) print(recruiter_anna.__str__()) print(candidate_grisha.__str__()) print(candidate_petya.__str__()) print(candidate_kolya.__str__()) print(vacancy_python_middle.__str__()) print(vacancy_python_senior.__str__())
from models import Employee from models import Recruiter from models import Programmer programmer = Programmer(name='Vasya', email='*****@*****.**', salary=100) print(programmer) print(programmer.check_salary(50)) recruiter = Recruiter(name='masha', email='*****@*****.**', salary=20) print(recruiter) print(recruiter.check_salary(8))