Can someone explain why this code isn't being accepted in the practice problem? | Sololearn: Learn to code for FREE!

0

Can someone explain why this code isn't being accepted in the practice problem?

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. https://code.sololearn.com/c5crkue5wa6i/?ref=app https://code.sololearn.com/c5crkue5wa6i/?ref=app

4/14/2021 2:53:40 AM

Yetco

4 Answers

New Answer

+6

print(' '.join(skills & job_skills))

+3

The output here is {'HTML'} Try to print like plain HTML Store the common value in another set or list and print one by one using index value I hope this will work

+2

Thank you for your help, I really appreciate it.

+2

Yetco As there is single common set so pop method will also help you to get result skill = skills & job_skills print (skill.pop());