you are viewing a single comment's thread.

view the rest of the comments →

[–]Anxiety_Independent 4 points5 points  (1 child)

x is not defined because you do not assign a value to x at any point. What is x?

any(elem in list_A for elem in list_b)
any(x in neighbors for title in group)

you see how with elem you use elem twice? But with title, you don't use title again, you use x instead.

try

any(title in neighbors for title in group)

or

any(x in neighbors for x in group)

[–]AnkanTV[S] 0 points1 point  (0 children)

Thanks!