This document provides an introduction to Python programming through a series of examples and exercises. It continues from Part 1 by discussing while loops and functions. Example programs include a security word guessing game with increasing difficulty levels and functions to sum and multiply lists of numbers. The document concludes with additional exercises for students to practice, such as a guessing game, 99 bottles of beer lyrics generator, and a random story generator.