Skip to main content
Ask a Question
Asked a question 9 months ago

is it correct ? list1 = [1,5,6,4,1,2,3,5] val = [1,1,5] check = all(item in list1 for item in val) if check is True: print("Its a Match") else : print("Its gone") list2 = [1,5,6,5,1,2,3,6] val = [1,1,5] check = all(item in list2 for item in val) if check is True: print("Its a Match") else : print("Its gone")

Fuel your ambition, discover your passion and achieve your professional goals with LetsUpgrade.
Sign Up Now