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)

6th Oct 2023, 3:50 AM
Dewmi Amasha De Silva
Dewmi Amasha De Silva - avatar
3 Respuestas
+ 2
Dewmi Amasha De Silva Do this print(*matched_skills)
6th Oct 2023, 9:00 PM
A͢J
A͢J - avatar
+ 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.
6th Oct 2023, 4:01 AM
Juan
Juan - avatar
+ 1
A͢J tnx
7th Oct 2023, 7:43 AM
Dewmi Amasha De Silva
Dewmi Amasha De Silva - avatar