@@ -0,0 +1,393 @@
+# coding: utf-8%0A%0A%0Adef hanoi(height, from_pole, mid_pole, to_pole):%0A    if height %3E= 1:%0A        hanoi(height-1, from_pole, to_pole, mid_pole)%0A        move_pole(from_pole, to_pole)%0A        hanoi(height-1, mid_pole, from_pole, to_pole)%0A%0A%0Adef move_pole(from_pole, to_pole):%0A    print('moving disk from %7B%7D to %7B%7D'.format(from_pole, to_pole))%0A%0A%0Aif '__main__' == __name__:%0A    hanoi(3, 'A', 'B', 'C')%0A

add hanoi