+ 1
Help understand please
What in solution is [0]? skills = {'Python', 'HTML', 'SQL', 'C++', 'Java', 'Scala'} job_skills = {'HTML', 'CSS', 'JS', 'C#', 'NodeJS'} print(list(skills&job_skills)[0])
2 odpowiedzi
+ 4
skills, job_skills are two sets. Apply bitwise and & operation between them. You get a set of values which are in both.
On result, making a list.
Now [0] apply will pick value at index 0
+ 1
Now i understand. Thank you