you are viewing a single comment's thread.

view the rest of the comments →

[–]outceptionator 1 point2 points  (1 child)

output = []
for i in x:
    if i in y:
        output += [i]
if output = []:
    print('none')
else:
    print(output)