0
Please help me to solve this 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. skills = {'Python', 'HTML', 'SQL', 'C++', 'Java', 'Scala'} job_skills = {'HTML', 'CSS', 'JS', 'C#', 'NodeJS'}
7 Answers
+ 5
A hint is for example:
for x in skills.i_t_r_e_t_on(job_skills):print(x)
+ 1
a^b
+ 1
Ratnapal Shende , really?
are you sure?
(1,2,3,4) this is tuple
[1,2,3,4] this is list
{3,2,4,1} this is SET actually
+ 1
Shadoff oops sorry but I was bemused... đ
Thank you for the correction!! đč
+ 1
I wrote this,
print(list((skills & job_skills))
but the resolution is adding [0] to make it:
print(list((skills & job_skills)[0])
what is the index of 0 added at the end?
+ 1
@Shalisa Miller without [0] its output would be ['HTLM'] , so we need to put [0] to output 0 object from this list and the output is now HTLM
0
Show us your approach first.