mat

Run Settings
LanguagePython
Language Version
Run Command
from itertools import product say = 0 for a in product(["0", "1"], repeat=4): for b in product(["0", "1"], repeat=4): for c in product(["0", "1"], repeat=4): for d in product(["0", "1"], repeat=4): a1 = ''.join(a) b1 = ''.join(b) c1 = ''.join(c) d1 = ''.join(d) a_1 = a1[0] + b1[0] + c1[0] + d1[0] b_1 = a1[1] + b1[1] + c1[1] + d1[1] c_1 = a1[2] + b1[2] + c1[2] + d1[2] d_1 = a1[3] + b1[3] + c1[3] + d1[3] if a1.count("1") == 2 and b1.count("1") == 2 and c1.count("1") == 2 and d1.count("1") == 2 and a_1.count("1") == 2 and b_1.count("1") == 2 and c_1.count("1") == 2 and d_1.count("1") == 2: print(a1) print(b1) print(c1) print(d1) print('-'*4) say += 1 print("Toplam Adet : " + str(say))
Editor Settings
Theme
Key bindings
Full width
Lines