Wrox Articles

Python Projects Chapter 2 Parsing HTML

This is the live code sandbox for Python Projects Chapter 2. This is an example using the HTML parser to extract a set of dates. Click “View Project” to run the example in your browser or edit the code and then click “View Project” to run it with your changes. You’ll want to look at [...]

Tags:

Python Projects Chapter 2 Parsing XML with SAX

This is the live code sandbox for Python Projects Chapter 2. This is an example using the SAX XML parser to extract a set of dates. Click “View Project” to run the example in your browser or edit the code and then click “View Project” to run it with your changes. You’ll want to look [...]

Tags:

Python Projects Chapter 2 Building a File Finder

This is the live code sandbox for Python Projects Chapter 2. This example builds and tests a module containing a file‐finding function using the os.walk() function as a foundation. It also includes functions to find directories and search both files and directories. Click “View Project” to run the example in your browser or edit the [...]

Tags:

Python Projects Chapter 2 Parsing XML with ElementTree

This is the live code sandbox for Python Projects Chapter 2. This is an example using the ElementTree XML parser to extract a set of dates. You also use the data to calculate the average loan period for the items in the spreadsheet. Click “View Project” to run the example in your browser or edit [...]

Tags:

Python Projects Chapter 2 Adding a Label Line to a CSV File

This is the live code sandbox for Python Projects Chapter 2. This is an example of adding a label line to a CSV file in Python. Click “View Project” to run the example in your browser or edit the code and then click “View Project” to run it with your changes. You’ll want to look [...]

Tags:

Python Projects Chapter 2 Reformatting Data and Writing to a CSV File

This is the live code sandbox for Python Projects Chapter 2. This is an example of reformatting data and writing to a CSV file in Python. Click “View Project” to run the example in your browser or edit the code and then click “View Project” to run it with your changes. You’ll want to look [...]

Tags:

Python Projects Chapter 1 Creating a Property within a Class

This is the live code sandbox for Python Projects Chapter 1. This is an example of creating a property within a class in Python. Click “View Project” to run the example in your browser or edit the code and then click “View Project” to run it with your changes. You can download the complete code [...]

Tags:

Python Projects – Live Code Sandbox

Python Projects – Live Code Sandbox This is the list of all of the live code sandbox examples for Python Projects. For each example, you’ll be able to edit the code in your browser and see the effect of running the edited code. Chapter 1 Simple Class Definition Chapter 1 Creating a Property within a [...]

Tags:

Python Projects Chapter 1 Simple Class Definition

This is the live code sandbox for Python Projects Chapter 1. This is an example of a simple class definition in Python Click “View Project” to run the example in your browser or edit the code and then click “View Project” to run it with your changes. You can download the complete code for Python [...]

Tags:

Beginning Java Programming: The Object-Oriented Approach Chapter 5 Controlling with Return

This is the live code sandbox for Beginning Java Programming: The Object-Oriented Approach Chapter 5. This example demonstrates how to break out of a loop using the return keyword directly. The example searches for an employee id in an employees array. When an employee is successfully found, the findEmployee() function simply returns true, thereby breaking [...]

Tags: