Skip to content

Code

Code from the book

This .zip file contains code from Business Python: an example-based guide.  It is provided freely for instructional purposes under the terms and conditions enumerated here.

Contents include:

  • asset_tracker.py (solution to chapter seven challenge)
  • load_save.py (solution to chapter six challenge)
  • monte_carlo.py (solution to chapter eleven challenge)
  • reconcile.py (partial solution to chapter nine challenge)
  • romans_conv.py (solution to chapter five challenge)
  • romans_conv_2.py (alternate solution to chapter five challenge)
  • romans_conv_3.py (alternate solution to chapter five challenge)
  • str_conv.py (solution to chapter four challenge)
  • test_data.py (partial solution to chapter nine challenge)
  • test_data_recon.py (partial solution to chapter nine challenge)
  • web_scrape.py (example from chapter six, pages 179-180)

Automating mass (form) email sending

I used a Python script to inform my friends about my book launch, sending from my Gmail account.  Here is the code I used – please use it for good, not evil (no SPAM!).  The ZIP file contains the main code file mass_email.py, the helper file load_save.py, and a demo recipient list file (in XLSX format) and email content file (as a plain text file).