As zipa pointed out, you never break
your while loop in the else statement on line 146 unless you run out of tries
. A one line “fix” is to simply put an exit()
after line 98 within the traverse()
function.
3
solved Udacity python code a quiz [closed]