Page 219 -
P. 219
custom data objects
Test Drive
Let’s confirm that this new version of your code works exactly as before by testing your code within
the IDLE environment.
Your dictionary code
produces the same results
as earlier.
Which, again, works as expected…the difference being that you can now more easily
determine and control which identification data associates with which timing data,
because they are stored in a single dictionary.
Although, to be honest, it does take more code, which is a bit of a bummer. Sometimes the
extra code is worth it, and sometimes it isn’t. In this case, it most likely is.
Let’s review your code to see if we can improve anything.
you are here 4 183