Answers for "check if any inside list equal pythom"

9

check if a list contains an item from another list python

## checking any elment of list_B in list_A
list_A = [1, 2, 3, 4]

list_B = [2, 3, 6]

check = any(item in list_A for item in list_B)

print(check)
# True
Posted by: Guest on May-17-2020
0

check if string equals string in list python

if any(x in paid[j] for x in d):
  # do stuff
Posted by: Guest on November-21-2020

Code answers related to "check if any inside list equal pythom"

Python Answers by Framework

Browse Popular Code Answers by Language