+ 2

From intermediate python course (Set section- you are qualified) what's wrong in my code

skills = {'Python', 'HTML', 'SQL', 'C++', 'Java', 'Scala'} job_skills = {'HTML', 'CSS', 'JS', 'C#', 'NodeJS'} match=skills & job_skills print(match)

3rd Dec 2021, 4:05 PM
Somil Khandelwal
6 ответов
+ 4
Try print(*match)
3rd Dec 2021, 4:36 PM
Jayakrishna 🇮🇳
+ 1
I don‘t really remember me but think there will be asked to output a list.
3rd Dec 2021, 4:12 PM
JaScript
JaScript - avatar
+ 1
This task is completed
3rd Dec 2021, 5:11 PM
Somil Khandelwal
+ 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)
4th Dec 2021, 2:59 AM
Bob_Li
Bob_Li - avatar
0
According to the question output should be matched skill and my output is{'HTML'} and still it showing retry
3rd Dec 2021, 4:14 PM
Somil Khandelwal
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.
3rd Dec 2021, 4:16 PM
Somil Khandelwal