6 ответов
+ 4
Try
print(*match)
+ 1
I don‘t really remember me but think there will be asked to output a list.
+ 1
This task is completed
+ 1
You would be using set intersection here.
The sample problem only had one item that matches. So you would probably do a
print(skills & job_skills)
What if there are more than one?The test probably expect you to print them one at a time.
skills = {'Python', 'HTML', 'SQL', 'C++', 'Java', 'Scala'}
job_skills = {'HTML', 'CSS', 'JS', 'C#', 'NodeJS'}
matched = skills&job_skills
#Use this:
for item in matched:
print(item)
0
According to the question output should be matched skill
and my output is{'HTML'} and still it showing retry
0
JaScript here is the question
You are working on a recruitment platform, which should match the available jobs and the candidates based on their skills.
The skills required for the job, and the candidate's skills are stored in sets.
Complete the program to output the matched skill.