File size: 442 Bytes
6370773 |
1 2 3 4 5 6 7 8 9 10 11 |
def match_skills(user_skills, job_skills):
"""
Compares user skills with job skills and returns matching skills and missing skills.
"""
user_skills = {skill.strip().lower() for skill in user_skills}
job_skills = {skill.strip().lower() for skill in job_skills.split(',')}
matched_skills = user_skills.intersection(job_skills)
missing_skills = job_skills - user_skills
return matched_skills, missing_skills
|