On Feb 26, 2016 5:30 PM, "Ken G." <beachkid...@gmail.com> wrote: > > I have been unable to get out of the following > loop. No matter what I entered, I can not get > get out of the loop. The only way I can stop > the routine is CTRL-C.
Yes: the condition on there code is unfortunately a tautology: it's always going to be true. For example, if side=0, although that fails the first sub-condition, it succeeds in the other two, and because it uses the boolean 'or' operation, the condition as a whole is successful. That's why the condition is always going to be true. Consider the difference between boolean 'or' and boolean 'and' instead. _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor