Towers of Hanoi non-recursive function
问题 I'm trying to figure out how to implement a non-recursive algorithm for the Hanoi Towers problem in function hanoi_2 below, but I have no idea how to continue... It throws an error: "can't pop from empty list" . It works somehow when I input an odd number, however, when the third turn passes things go wrong. When an even number is input as the number of discs the program doesn't even start. What is wrong? from turtle import * from tkinter import * # used for the dialog box from tkinter