+ 3

What's wrong with this code ?

skills = {'Python', 'HTML', 'SQL', 'C++', 'Java', 'Scala'} job_skills = {'HTML', 'CSS', 'JS', 'C#', 'NodeJS'} matched_skill = skills & job_skills print(matched_skill) Hello every body .. Strangely when i execute the code that works but in the sololearn platforn it does not !!! Please help !

27th Feb 2022, 10:22 PM
Abdelmounaim Amennou
Abdelmounaim Amennou - avatar
12 odpowiedzi
+ 3
Don't print matched_skill but what is ***in*** matched_skill
27th Feb 2022, 10:37 PM
Lisa
Lisa - avatar
+ 3
Don't convert matched_skill, just print the element in matched_skill
27th Feb 2022, 10:39 PM
Lisa
Lisa - avatar
+ 3
The task requires to output the skill, mot the set
27th Feb 2022, 10:40 PM
Lisa
Lisa - avatar
+ 2
You need to output only the matching skill as string, not as set
27th Feb 2022, 10:30 PM
Lisa
Lisa - avatar
0
Abdelmounaim Amennou , I have tested your code, it works on Sololearn platform and is correct. What's up?
1st Mar 2022, 9:35 PM
Raffaele Bisogno
Raffaele Bisogno - avatar
0
🤦
1st Mar 2022, 9:39 PM
Raffaele Bisogno
Raffaele Bisogno - avatar
- 2
Yes i did it but it doesn't work
27th Feb 2022, 10:37 PM
Abdelmounaim Amennou
Abdelmounaim Amennou - avatar
- 2
print(str(matched_skills))
27th Feb 2022, 10:38 PM
Abdelmounaim Amennou
Abdelmounaim Amennou - avatar
- 2
Why !! in fact matched_skill is a variable (Lisa)
27th Feb 2022, 10:39 PM
Abdelmounaim Amennou
Abdelmounaim Amennou - avatar
- 2
Write ' . '.join(matched_skill) It will print only HTML https://code.sololearn.com/ck37NI0UQler/?ref=app
28th Feb 2022, 4:21 PM
NonStop CODING
NonStop CODING - avatar
- 3
Should i convert the result to string ? ... but it doesn't work !!
27th Feb 2022, 10:34 PM
Abdelmounaim Amennou
Abdelmounaim Amennou - avatar
- 3
It works !!! thank you all
27th Feb 2022, 10:57 PM
Abdelmounaim Amennou
Abdelmounaim Amennou - avatar