Python code walkthroughs