Asnwer to a practice | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Asnwer to a practice

Course "Python Developer" Collection type Unit: Practice: Sets 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. level You can use the intersect operator to get the values present in both sets. skills = {'Python', 'HTML', 'SQL', 'C++', 'Java', 'Scala'} job_skills = {'HTML', 'CSS', 'JS', 'C#', 'NodeJS'} The answer should be: print(skills & job_skills) But it doesnt work. Any clue?

29th Aug 2023, 11:11 AM
Javi marin
Javi marin - avatar
2 Answers
+ 2
your output is {'HTML'} but it should be HTML
29th Aug 2023, 11:34 PM
Angela
Angela - avatar
0
Javi marin print(*skills & job_skills)
30th Aug 2023, 12:36 AM
Alexey Kopyshev
Alexey Kopyshev - avatar