Python II: Applied Python
Revision: TE6202_20080222
(6.19 KB) View, Download, or Print Catalog as a PDF.
Course Length:
4 Days
Course Description:
Once students have mastered the basics of Python, it's time to move on to applying Python to daily programming needs. This course picks up where Python I left off, covering some topics in more detail, and adding new ones. For instance, regular expressions and classes are covered extensively, with network programming (e.g. FTP, Web client and server), graphical programming, database access, and other areas of general need.
Who Should Attend:
This course is appropriate for Python programmers who are ready to ramp their skill up to the next level.
Benefits of Attendance:
Upon completion of this course, students will be able to:
- Apply Python to daily programming needs.
Prerequisites:
Students should be able to write simple Python scripts, using basic data types, program structures, and the standard Python library. Our Python I class provides this necessary background.
Course Outline:
- Python refresher
- Basic data
- Lists and dictionaries
- Program structure
- Files and console I/O
- Pattern matching
- Data wrangling
- Output formatting
- The string module
- Compiling regular expressions
- Text matching and substitution
- Extended regular expressions
- Subexpressions and backreferences
- Alternate data formats
- Filename and path manipulation
- OS Services
- Using os.path
- Working with file systems
- Using os
- Process parameters
- Executing external commands
- Time and data data
- Environment variables
- Graphical programming
- Graphical programming overview
- About Tk
- The TkInter module
- Creating widgets
- Packing widgets
- Fonts, colors, and other widget attributes
- Starting the application
- Bindings and events
- Creating modules
- Module overview
- Understanding namespaces
- Writing functions
- Variable scope
- Documentation
- Distributing modules
- Testing and debugging
- Debugging issues
- Using the debugger
- Post-mortem debugging
- Designing tests
- Creating unit tests
- Making and using a test harness
- Fun with objects
- Defining classes
- Inheritance
- Multiple inheritance
- Auto-generating methods
- Pythonic Progamming
- Python style
- Lambda functions
- List comprehensions
- Generators and iterators
- Network services
- Using FTP
- Sending with SMTP
- Python and CGI
- Plain CGI
- A shopping cart example
- Using templates
- Database access
- DB-API overview
- The dbi module
- The odbc module
- Queries
- Non-query statements
- Using XML Data
- XML Data
- SAX vs. DOM
- Using xml.sax
- Parsing an XML file
- Using xml.dom
- Accessing XML objects
- Object serialization (AKA Pickling)
- About serialization
- The pickle module
- Using dump()
- Using load()
- Where to use
- Python Cookbook
- Working with zipped data
- Copying objects
- Obtaining random numbers
- Benchmarking code
- Application logging
- Parsing command line options
- Other topics as suggested by students



