Stepping through the code: spyder and pdb should be on the same line?
Post-mortem:
Are the two steps here a suggested workflow (i.e. cause an error on purpose, to invoke the debugger)? Or just a description of a case in which you would want to use a debugger?
In last line, missing spaces between arguments and between list elements
Link to Xcode -> 404 error
why does print(energy([5, 6, 7, 8, 0, 1])) give SyntaxError: Missing parentheses in call to 'print'? I guess I must have missed something.