Introduction:

These are example Python Scripts from Head First Programming, First Edition by Paul Barry and David Griffiths (Copyright 2009 - O'Reilly Media, Inc.)

*https://www.online-python.com/ (Online Compiler).

Personal note: Remember to indent your blocks with Python (.py).

Official Websites (for books):

Official Python Website:


The Different Types of Code (Head First Programming):

Chapter One: Starting to Code - Finding Your Way

"Guessing Game":

Introduction - This is a code for a guessing game. I learned the code and it's modified.

Code:

"Money for Fuel":

Introduction - This is a code to see if there is money for fuel. I learned the code and it's modified.

Code:


Chapter Two: Textual Data: Every String Has Its Place

"Starbuzz Code:":

Introduction - This is an intro code to develop a program in Python. First, to check out strings in the compiler/terminal.

"List of Functions":


Chapter Three: Functions

Introduction  - This is an intro code to check out strings in the compiler/terminal. Also adds password variable.

"Starbuzz Code (continued):":

Social Media Feed:


Chapter Four: Sort It Out (data structures)

Introduction  - This is how to use data structures by using for loops and arrays.

"Surf-A-Thon Program":

Pseudocode:

"List of Functions":


Chapter Five: Putting the data in its place.

Introduction  - This is how to use data structures by using hashes as it works with stored data.

"Surf-A-Thon Program": (Part Two - Search Program)

Program Files:


Chapter Six: Keeping things straight.

Introduction  - This is how to use modular programming techniques.

Transactions Program:

Program Files:

Final Programming Files:


Chapter Seven: Building a Graphical User Interface.

Introduction  - This is how to use a graphical user interface (GUI).

TVN Program - Game Show/Sound/GUI

Other Files:


Chapter Eight: Data Entry Widgets

Introduction  - This is how to add data to GUIs.

Overview:

Head-Ex Deliveries Program:


Chapter Eight (and a half): Exceptions and Message Boxes

Introduction  - This is how to handle exceptions to files.

Overview:

Head-Ex Deliveries Program: (Continued)


Chapter Nine: Graphical Interface Elements

Introduction  - This is how to put programs in graphical user interfaces.

Overview:

Head First Mix:


Chapter Ten: Custom Widgets and Classes

Introduction  - This is how to do object orientation.

Overview:

HFP_WAV (WAV Files):

Head First Mix (Continued):