24 game/Solve: Difference between revisions

(→‎{{header|Python}}: Now works with both Python 2.6. and 3.X (tested))
Line 37:
input = raw_input
from itertools import izip_longest as zip_longest
else:
from itertools import zip_longest
 
def choose4():
Line 90 ⟶ 92:
for d in digiperm:
for ops in opcomb:
ex = list(chain.from_iterable(*zip_longest(d, ops, fillvalue='')))
for b in brackets:
exp = ex[::]
Anonymous user