xxxxxxxxxx
check = all ( item in first_list for item in second_list )
# check = True - All elements from first_list are in second_list
# check = False - Not all elements from first_list are not in second_list
xxxxxxxxxx
'''
check if list1 contains any elements of list2
'''
result = any(elem in list1 for elem in list2)
if result:
print("Yes, list1 contains any elements of list2")
else :
print("No, list1 contains any elements of list2")
xxxxxxxxxx
fruits1 = ['Mango','orange','apple','jackfruit']
fruits2 = ['Mango','orange','apple','jackfruit']
new_list= all(item in fruits1 for item in fruits2)
if new_list is True:
print("True")
else :
print("False")