Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Safe Code by Moff
def safe_code(equation):
for i in range(10):
if str(i) in equation or ((equation.startswith('#') or '=#' in equation) and i == 0):
continue
if eval(equation.replace('#', str(i)).replace('=', '==')):
return i
return -1
Oct. 6, 2018