Skip to content

Latest commit

 

History

History
40 lines (22 loc) · 1.39 KB

File metadata and controls

40 lines (22 loc) · 1.39 KB

Towers of Hanoi

Question

Implement the Towers of Hanoi program.

Solution

.. literalinclude:: ../../languages/python/algorithm_hanoi.py
   :language: python
   :tab-width: 4


Visualize

Execute

.. seealso::

   * :python-suggest-improve:`algorithm_hanoi.py`
   * :python-better-explain:`algorithm_hanoi.rst`