How to check all items in loop query and continue only if all match the desired result?
问题 faces_all = list(range(1,25)) # Create list numbered 1-24 for x in itertools.combinations((faces_all),3): # check combinations in numbers 2-23 if faces_all[0] + sum(x) == 50: # if 1 + combination = 50 continue for pair in itertools.combinations([faces_all[0],x],2): # HELP if pair != 25: That's my code. What I want to be able to do is ONLY continue if every combination of faces_all[0] and x (should be 4 numbers, 6 combinations of 2 numbers) is NOT equal to 25. If even one combination of 2