PY
py
1
2
3
4
5
6
7
8
9
# Response to https://www.sololearn.com/Discuss/361664
from itertools import product, chain
oneToEight = [str(x) for x in range(1,9)]
for signs in product(["+","-",""], repeat = 8):
currStr = ''.join(chain.from_iterable((zip(oneToEight,signs))))+'9'
if eval(currStr)==100:
print(currStr)
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run