Python:
P = [2,4,6,8,10,12,14,16,18,20]
Q = [3,6,9,12,15,18,21,24,27,30]
def Del(x, P, Q, A):
return ((not(not(x in P) or (x in A)) or ((x not in A))) or (x not in Q))
for A in range(1, 100):
OK = True
for x in range(1, 100):
for y in range(1, 100):
if Del(x, P, Q, A) == False:
OK = False
break
if OK == True:
print (A)
выдает:
TypeError: argument of type 'int' is not iterable