Who has problam with practice Set? (python developer course) [solved] | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Who has problam with practice Set? (python developer course) [solved]

why is the result not accepted in practice? skills = {'Python', 'HTML', 'SQL', 'C++', 'Java', 'Scala'} job_skills = {'HTML', 'CSS', 'JS', 'C#', 'NodeJS'} matched_skills = skills & job_skills print(matched_skills) http://joxi.ru/a2X9xegipGJZlA

12th Sep 2023, 4:39 PM
Kovalchuk Olexander
Kovalchuk Olexander - avatar
6 Answers
+ 1
The trick with that one is that it expects you to output, HTML not {'HTML'} so you have to unpack the string from the set and print the string. Don't print the set.
13th Sep 2023, 12:26 PM
Rain
Rain - avatar
0
Do you expect an output: {'HTML'} ?
12th Sep 2023, 4:55 PM
Y AD Ù
Y AD Ù - avatar
0
Yes, it's my result
12th Sep 2023, 5:05 PM
Kovalchuk Olexander
Kovalchuk Olexander - avatar
0
Problem: "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. level You can use the intersect operator to get the values present in both sets. skills = {'Python', 'HTML', 'SQL', 'C++', 'Java', 'Scala'} job_skills = {'HTML', 'CSS', 'JS', 'C#', 'NodeJS'} "
12th Sep 2023, 5:08 PM
Kovalchuk Olexander
Kovalchuk Olexander - avatar
0
Problem is over, thanks for all
14th Sep 2023, 8:42 AM
Kovalchuk Olexander
Kovalchuk Olexander - avatar
0
Kovalchuk Olexander , Cool. I think it's customary to add [Solved] to the end of the question title, so people who see it in the future know they don't need to help.
14th Sep 2023, 10:50 AM
Rain
Rain - avatar