Skip to main content

Instructor-led training

Beginning Python Training in Sartell, Minnesota

This three-day course provides the student with the knowledge to create and run Python scripts that include Python-specific data structures, function, modules, and classes.

What you'll learn

This three-day course provides the student with the knowledge to create and run Python scripts that include Python-specific data structures, function, modules, and classes.

Private Training for Teams

This course is offered as private, instructor-led training for organizations, onsite in Sartell, Minnesota 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

Basic computer knowledge and keyboarding skills

Course Outline

Meet Python
Origin of Python
Where to Get Python
Invoking Python
Other Python Implementation
Python Resources

Handling Numbers and Strings
Numeric Data
Using Numbers
String Data
Using Strings

Variables and Data Structures
Variables
Numeric and String Variables
Lists
Tuples
Sets
Dictionaries
Additional Resources

Flow Control
Controlling the Flow
The (if) Statement
The (while) Statement
The (for) Statement
The range() Function and Loops
Other Statements with Loops

Conditional Expressions
Conditions and Conditional Expressions
Numeric Comparisons and Conditions
Comparing Strings
Complex Conditions

Basic Input and Output
Reading Input
Simple Output
Formatted Output

Function
Creating Functions
Invoking Functions
Returning Values from Functions
Passing Parameters
More About Function Arguments
Scope of Variables
Lambda Functions

 
Using Modules
What are Modules?
Creating Modules
Using Modules
More About Modules
Compiled Modules
Standard Modules

An Introduction to Classes
Namespaces
What is a Class?
Defining a Class
Defining Class and Instance Attributes
Defining Methods
Instantiating a Class
Inheritance
Resources

Regular Expressions
Pattern Matching vs. Wildcards
Compiling Regular Expressions
Matching vs. Searching
Substitution
Regular Expressions: Metacharacters
The Problem with \
Special Backslash Sequences
Using MatchObject
Additional Regular Expression Operation
Additional Resources

Files
File Handles and File-like Objects
Opening and Closing Files
Reading from Files
Writing to Files
Moving Around in Files
The pickle Module
Resources

Errors and Exceptions
Errors, Exceptions, and Warnings
Raising an Exception
User Defined Exceptions
Catching and Handling Exceptions
 

What makes this material hard to master

The syntax is small. The harder part is learning how Python treats data and names, because several early topics interact. The syllabus builds in this order.

  • Values and containers first. Numbers and strings come before variables, then lists, tuples, sets and dictionaries. Choosing among these is the first real design decision. Lists and dictionaries can be changed in place and tuples cannot, and this difference explains many bugs later in the course.
  • Control flow and conditions. The if, while and for statements, range(), and conditional expressions, including numeric and string comparisons and complex conditions. Writing loops that iterate over a collection, rather than counting indexes, is a habit change for developers from other languages.
  • Functions and scope. Parameters, returned values, more about function arguments, variable scope and lambda functions. When two names refer to the same mutable object, a function can change a caller's data without anyone intending it. Learners often meet this through argument passing.
  • Modules and classes. Creating and using modules, standard modules, namespaces, class and instance attributes, methods and inheritance. Namespaces connect scope, modules and classes, so they are worth understanding early.
  • Regular expressions. Matching versus searching, substitution, metacharacters, special backslash sequences and MatchObject. The backslash topic is a frequent stumbling block, because the string literal and the pattern each interpret it.
  • Files and exceptions. File handles, reading, writing, moving around in files, pickle, then raising, catching and defining exceptions. Real input is untidy, so error handling is part of writing a script that holds up.

A common misconception is that a script which runs once on sample data is finished. Empty input, unexpected text encodings and missing files are where beginner scripts tend to fail.

Who it suits and where to go next

The only stated prerequisites are basic computer knowledge and keyboarding skills. It suits administrators, analysts, testers and developers new to Python who need to write and run their own scripts. It also suits training managers who need a common starting point for a mixed group.

Once learners are comfortable with functions, modules, classes and exceptions, Intermediate Python 3.x is a natural next step for deepening language skills. If the work is mostly tabular data and reporting, Python Data Analysis with NumPy and Pandas builds on the lists, dictionaries and file handling introduced here.

Organizations that work with a particular Python release can ask for private training tailored to the versions they use. Use the training proposal request to describe your environment. Browse related offerings in the Python Programming courses and learning guide.

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.

  • Cleaning exported data. A team might receive text exports with inconsistent formatting. Strings, regular expression substitution, file reading and writing, and formatted output could turn them into a consistent file. Exceptions would handle a missing or malformed file.
  • A shared helper module. An operations group might collect repeated snippets into one module of functions. Default and keyword arguments would keep the calls readable, and a dictionary would hold lookup tables. Colleagues could then import the module instead of copying code.
  • Modeling a simple record type. A developer might define a class with attributes and methods for the items a script processes, then use inheritance for a variant. Saving the objects with pickle would let a later run pick up where the last one stopped.

AI coding assistants for these topics

AI coding assistants are useful for drafting small scripts, suggesting a regular expression for a described pattern, and sketching tests. They also help beginners see an alternative way to write a loop or a function. They are less reliable in the places this course teaches carefully:

  • Regular expressions. A generated pattern may look right but match too much, or fail on backslash sequences. Test it with match versus search behavior in mind, on both good and bad sample lines.
  • File handling. Generated code may skip closing files or ignore text encoding and path differences. Try empty files, missing files and unusual characters.
  • Scope and shared objects. Suggestions can modify a list or dictionary that the caller still uses. Check what each function changes.
  • Error handling. Assistants often catch every exception broadly. Decide which errors you expect, and let the rest surface.

To verify, run the code on small inputs you can check by hand, write down the expected result first, and read every line before automating anything that touches business data. Learners who understand the syllabus topics can judge whether a suggestion is correct.

Frequently asked questions

What level is Beginning Python?

It is a general, three-day course for people new to Python. It starts with numbers, strings and variables and works up to functions, modules, classes, regular expressions, files and exceptions.

What do I need to know beforehand?

Basic computer knowledge and keyboarding skills. The syllabus does not assume prior programming experience.

What does the course cover, and what does it leave out?

It covers data structures (lists, tuples, sets, dictionaries), flow control, input and output, functions, modules, an introduction to classes, regular expressions, files and exceptions. Its syllabus does not list data-analysis libraries or web frameworks. Python Data Analysis with NumPy and Pandas is one follow-on option for the former.

Can this be delivered privately for our team?

Yes. HSG provides private training for organizations, delivered onsite at your location or live online.

Can the content be customized?

Private courses can be tailored to the technology versions your organization uses and to your team's needs. Send details through the training proposal request.

Training locations

Beginning Python training across the U.S. and beyond.

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

View all Beginning Python 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.