Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Anger management solution in Clear category for Safe Code by veky
import contextlib, string
def safe_code(equation):
equation = equation.replace('=', '==')
for miss in string.digits:
if miss in equation or miss == '0' and '##' in equation: continue
with contextlib.suppress(SyntaxError):
if eval(equation.replace('#', miss)): return int(miss)
return -1
Sept. 17, 2018
Comments: