Need help ( explanation) to output HTML, which is matched skill. Thks. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Need help ( explanation) to output HTML, which is matched skill. Thks.

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. skills = {'Python', 'HTML', 'SQL', 'C++', 'Java', 'Scala'} job_skills = {'HTML', 'CSS', 'JS', 'C#', 'NodeJS'} print (skills & job_skills ) This didn't work, i realise that it's easy to output when items are numbers like in courses but its str

21st Oct 2021, 7:09 PM
ola Scar
ola Scar - avatar
2 Answers
+ 3
Your code is accurate in that it returns a set containing HTML, but the challenge wants the item / items within the set, so you must unpack the result. print(*(skills & job_skills))
21st Oct 2021, 8:46 PM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
Thanks ! I discover now this manner to unpack with *()
21st Oct 2021, 9:45 PM
ola Scar
ola Scar - avatar