Sharedsupport / 2018-04-07-222845-viral-riddle.sagewsOpen in CoCalc
Author: William A. Stein
License: GNU General Public License v3.0
Description: Examples for support purposes.
%var figure, banana, clock
s = solve([figure + figure + figure == 45, banana + banana + figure == 23, banana+clock+clock==10], [figure, banana, clock], solution_dict=True)[0] s
{figure: 15, clock: 3, banana: 4}
s[clock] + s[banana] + s[banana] * s[figure]
67
# or if the puzzle is stupid regarding order of operations... (s[clock] + s[banana] + s[banana]) * s[figure]
165