Computer Science, asked by zainali456168, 3 months ago

. Write a Python function that takes two lists and returns True if they
have at least one common member.

Answers

Answered by valeriy69
1

\small\mathsf\color{pink}{Solution\: using\: python\: 3}

def diff(l1, l2):

return len(set(l1).intersection(l2)) > 0

print(diff([1, 2, 3], [1, 5, 69]))

\small\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions