3 ответов
+ 6
match = {} will make empty dictionary.
Use
match = set()
And print set elements, not entire set.
+ 5
Just as a suggestion:
You can simplify your code by removing the inner loop and just check if x in job_skills.
If you read the task description carefully, you'll find that they suggest you ***intersection*** to solve the task (see previous lesson on sets).
+ 1
Thank you guys! Lisa yeah i know the intersect operator and already had the solution with it. I just wondered how the code behind it works to get a better understanding.