@@ -0,0 +1,274 @@
+#!/bin/env python%0A# -*- coding: utf8 -*-%0A%0Adef Hanoi(n=1, A=%22A%22, B=%22B%22, C=%22C%22):%0A    if n == 1:%0A        print %22Move disk %25d from %25c to %25c%22 %25 (n, A, C)%0A    else:%0A        Hanoi(n - 1, A, C, B)%0A        print %22Move disk %25d from %25c to %25c%22 %25 (n, A, C)%0A        Hanoi(n - 1, B, A, C)%0A

Add Hanoi demo