+ 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 !
12 Respuestas
+ 3
Don't print matched_skill but what is ***in*** matched_skill
+ 3
Don't convert matched_skill, just print the element in matched_skill
+ 3
The task requires to output the skill, mot the set
+ 2
You need to output only the matching skill as string, not as set
0
Abdelmounaim Amennou , I have tested your code, it works on Sololearn platform and is correct. What's up?
0
🤦
- 2
Yes i did it but it doesn't work
- 2
print(str(matched_skills))
- 2
Why !! in fact matched_skill is a variable (Lisa)
- 2
Write
' . '.join(matched_skill)
It will print only HTML
https://code.sololearn.com/ck37NI0UQler/?ref=app
- 3
Should i convert the result to string ? ... but it doesn't work !!
- 3
It works !!! thank you all