Skip to main content

Instructor-led training

Python II: Advanced Python 3 Training in Ormond Beach, Florida

This two day course covers a handful of various Python advanced topics including high level data structures, network programming, writing GUI's in Python, and CGI programming.

What you'll learn

This two day course covers a handful of various Python advanced topics including high level data structures, network programming, writing GUI's in Python, and CGI programming. This course is particularly well suited for programmers who are building application frameworks, integrating Python with other software, or using Python for distributed computing.

Private Training for Teams

This course is offered as private, instructor-led training for organizations, onsite in Ormond Beach, Florida or live online. Dates, delivery format, and course content are arranged around your team's requirements.

This course is not currently scheduled as a public class for individual enrollment.

Request Group Training

Prerequisites

Students should have taken an introductory Python course or have six months of Python programming experience.

Course Outline

1. What you should already know about Python
Introduction
Language Evolution
Python Reserved Words and Other Rules
Documentation
The string Class
Variables
DataTypes
Boolean and Numeric Types
Strings
Lists
Sets
Sequences
Looping Through Sequences
Dictionaries
Bit Manipulation
Functions
Modules
Standard Input and Output
File Input and Output
Some File Tests

2. Data Structures
range
List Comprehensions
Nested List Comprehensions
Dictionary Comprehensions
Dictionaries with Compound Values
Processing Lists in Parallel
Specialized Sorts
Time Functionality
Generators

3. Writing GUIs in Python
Introduction
Components and Events
The tk Widget
Button Widgets
Entry Widgets
Text Widgets
Checkbutton Widgets
Radiobutton Widgets
Listbox Widgets
Frame Widgets
Menu Widgets
Toplevel Widgets
Dialogs

4. Python and CGI Scripts
What is CGI
HTML
HTML Forms
A Guestbook Application
What Can Go Wrong!
HTML Tables
The CGI Script
Rendering of the Script

5. The os Module
The Environment
Creating a Process
Listing Files
Other Process Methods
File Information (Metadata)
Working with Directories

6. Network Programming
Networking Fundamentals
The Client/Server Module
The socket Module
The Client Program
The Server Program
An Evaluation Client and Server
A Threaded Server

Appendix A: What You Might Not Already Know
What is an Iterable?
Creating Your Own Iterators
Generators
The Functions any and all
Thread Fundamentals
Synchronization
Signals
The Python Debugger
The with Statement
Data Compression
Appendix B: Python and Databases
Introduction
DBM Operations
Pickling
Pickling with Complex Objects
Shelves
Using sqlite3
Executing Queries
Table Descriptions
Writing Database Scripts

What makes this material hard to master

This course is broad rather than deep. In two days it moves from data structures to desktop GUIs, CGI, operating-system access and sockets, and each area has its own mental model. The difficulty is switching between those models.

  • Lazy versus eager evaluation. The data structures module pairs list, nested list and dictionary comprehensions with generators. Learners often treat generators as lists with different syntax. Appendix A (iterables, writing your own iterators, any and all) explains why they are not. Nested comprehensions are also easy to write and hard to read, so deciding when to use them matters as much as the syntax.
  • Event-driven control flow. In the Tk section you declare components and bind events, and the toolkit calls your code. That inverts the top-to-bottom flow of scripts. Widgets such as Entry, Text, Listbox, Menu and Toplevel each have their own way of reading and updating state.
  • Stateless requests. The CGI module builds a guestbook from an HTML form, a table and a script. Each request starts fresh, and the module includes a section on what can go wrong, such as malformed input and broken output.
  • Bytes, blocking and concurrency. The network programming module builds a client, a server, an evaluation client and server, and then a threaded server. Blocking calls and shared state are where the bugs appear. The appendix topics on thread fundamentals, synchronization and signals support this, and so does the Python debugger.
  • Persistence choices. Appendix B moves from DBM files to pickling, shelves and sqlite3. Choosing among them is a design decision. Pickled data should only be loaded from sources you trust.

The first module reviews prerequisite material (strings, lists, sets, dictionaries, functions, modules, file I/O) so everyone starts from the same baseline. The later modules assume you can read that material comfortably.

Who it suits and what to take around it

The course suits programmers who already write working Python and now need to build tools that talk to the operating system, the network, a user or a database. The stated prerequisite is an introductory Python course or about six months of hands-on experience. The description names framework builders, people integrating Python with other software, and people working on distributed computing.

If your experience is thinner than that, Introduction to Python 3.x builds the fundamentals that the first module here only reviews. If you can write scripts but want more language depth before the GUI, CGI and socket material, Intermediate Python 3.x sits between the two levels.

Teams that want a longer advanced format can look at Advanced Python 3 (3 Day Course). The Python Programming overview lists the other options.

Illustrative scenarios

The scenarios below are illustrations of how the course material can be applied. They are not descriptions of specific organizations or of the course's lab exercises.

These examples show how the syllabus topics combine in practice.

  • An internal desktop utility. A support team might wrap a command-line routine in a Tk window. Entry and Listbox widgets would collect input and show results, a dialog would confirm destructive actions, and the os module topics (listing files, file metadata, working with directories) would supply the data.
  • A small networked service. A team integrating Python with another system might build a socket server that accepts requests from several clients at once. This follows the client program, server program and threaded server pattern. Synchronization and signal handling from Appendix A would govern shared state and shutdown.
  • Maintaining a form-based intranet page. An organization that still runs a CGI script might need to fix or extend it. The relevant skills are HTML forms, rendering tables, handling bad input, and storing submissions with sqlite3 by executing queries and writing database scripts.

Using AI coding assistants with these topics

AI coding assistants are useful for the repetitive parts of this material. They can draft comprehensions, lay out Tk widgets, write sqlite3 boilerplate and outline a basic socket client. They are weaker where behavior depends on timing, state or untrusted input.

  • Sockets and threads. Generated servers often assume one recv call returns one whole message, mishandle text versus bytes, or share data between threads without synchronization. Test with several simultaneous clients, slow clients and abrupt disconnects, not just one happy-path client.
  • GUI code. Assistants may mix up module names or widget options, or block the event loop with long-running work. Run the window and exercise every widget and menu path.
  • CGI and databases. Check that user input is escaped before it is rendered in HTML and that SQL uses parameters rather than string concatenation. Also check that the script produces well-formed output when input is empty or malformed.
  • Persistence. An assistant may suggest pickle for convenience. Confirm the data source is trusted before loading it.

To verify, run everything, write tests for edge cases such as empty input, encodings and path handling, and step through suspect code with the Python debugger from Appendix A. Review generated code for resource cleanup, since the with statement is the idiomatic way to handle it.

Frequently asked questions

What level is this course?

It is advanced. It assumes you already write working Python and moves quickly through data structures, GUIs, CGI, the os module, sockets and database persistence.

What should I know before attending?

An introductory Python course or roughly six months of Python programming experience. The first module reviews strings, lists, sets, dictionaries, functions, modules and file I/O, but it is a refresher, not an introduction.

What does the course cover?

Comprehensions, generators and sorting; Tk GUIs with common widgets and dialogs; CGI scripts and HTML forms; the os module for processes, files and directories; socket-based client/server programming including a threaded server; and appendices on iterators, threads, the debugger, pickling, shelves and sqlite3.

Can this be delivered privately for our team, onsite or online?

Yes. Private training for organizations can be delivered onsite at your location or live online.

Can the content be customized?

Private course content can be customized, including tailoring to the Python versions your organization uses. You can describe your needs through the training proposal request.

Training locations

Python II: Advanced Python 3 training across the U.S. and beyond.

We provide private Python II: Advanced Python 3 training for organizations, onsite at your location or live online, throughout the United States and internationally.

View all Python II: Advanced Python 3 training locations

Train your team with HSG

Private, instructor-led training customized for your organization.

  • Onsite or live online delivery
  • Customized curriculum
  • For a single employee or an entire team
  • Flexible scheduling
  • Experienced instructors
Request Group Training

Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com

Ready to train your team?

Let's customize this training for your organization.

Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.