Skip to main content
Ctrl+K
tryalgo 1.5.0 documentation - Home tryalgo 1.5.0 documentation - Home
  • Installation
  • Quick start
  • Content of the library
  • Gallery of examples
  • tryalgo
  • Installation
  • Quick start
  • Content of the library
  • Gallery of examples
  • tryalgo

Section Navigation

  • Countdown
  • Coin change
  • Gallery of examples
  • Countdown

Note

Go to the end to download the full example code.

Countdown#

from tryalgo.arithm_expr_target import arithm_expr_target

arithm_expr_target([25, 50, 75, 100, 3, 6], 952)

Returns ((((75*3)*(100+6))-50)/25)=952.

See on our blog the original Countdown video behind this example.

Download Jupyter notebook: arithm_expr_target.ipynb

Download Python source code: arithm_expr_target.py

Download zipped: arithm_expr_target.zip

Gallery generated by Sphinx-Gallery

previous

Gallery of examples

next

Coin change

© Copyright 2016-2023, Christoph Dürr and Jill-Jênn Vie.

Created using Sphinx 8.2.3.

Built with the PyData Sphinx Theme 0.16.2dev0.