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 the code and then click “View Project” to run it with your changes. You’ll want to look at the CSV file created after you run the sample. Reload each time you make changes to rerun and see the new CSV.
You can download the complete code for Python Projects as well to work with it in your own code editor.

Return to the complete list of live code sandbox examples for Python Projects



Leave a Reply

Your email address will not be published. Required fields are marked *