Code is right the program gives me it's wrong | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Code is right the program gives me it's wrong

skills = {'Python', 'HTML', 'SQL', 'C++', 'Java', 'Scala'} job_skills = {'HTML', 'CSS', 'JS', 'C#', 'NodeJS'} print(skills & job_skills ) I can't continue learning because the program told me the code is wrong Any one can help

9th Nov 2023, 12:18 PM
khaleed
4 Answers
+ 5
khaleed it is asking for the content, not the set. destructure or unpack the union. print(*(skills & job_skills))
9th Nov 2023, 1:17 PM
Bob_Li
Bob_Li - avatar
+ 5
according to the task description, you are supposed to output the element, not a set. Only output the element in the set, not the set.
9th Nov 2023, 1:02 PM
Lisa
Lisa - avatar
+ 1
The result should be the match skill in every list
9th Nov 2023, 12:19 PM
khaleed
0
You are near at the solution but your code needs "list" and [0]
10th Nov 2023, 9:14 PM
Olaf Silla
Olaf Silla - avatar