0
In python developer course, module seven, set practice code is not working... it's showing error ? could you please help?
This 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. You can use the intersect operator to get the values present in both sets. And this is the code which I have written, skills = {'Python', 'HTML', 'SQL', 'C++', 'Java', 'Scala'} job_skills = {'HTML', 'CSS', 'JS', 'C#', 'NodeJS'} # Matched skills matched_skills = job_skills.intersection(skills) # Output the matched skills print( matched_skills)
3 odpowiedzi
+ 2
Dewmi Amasha De Silva
Do this
print(*matched_skills)
+ 2
Hey,
The solution does not accept a set or a list as the answer. You need to output the answers one at a time. Hope that helps.
+ 1
A͢J tnx