Solved Python Problem Can You Please Include Some Comments

Solved Python Problem Can You Please Include Some Comments