Instructor-led training
Python I: Essentials Training in Bergenfield, New Jersey
This four day course leads the student from the basics of writing and running Python scripts to more advanced features such as file operations, regular expressions, working with binary data, and using the extensive functionality of Python modules.
What you'll learn
Prerequisites
Course Outline
An Overview of Python
What is Python?
The Birth of Python
Python Timeline
About Interpreted Languages
Advantages of Python
Disadvantages of Python
How to get Python
Which version of Python?
The of 2.x
Getting Help
pydoc
The Python Environment
Starting Python
If the interpreter is not in your PATHs
Using the interpreter
Trying out a few commands
Running a Python script
Python scripts on UNIX
Python scripts on Windows
Python editors and IDEs
Getting Started
Using Variables
Keywords
Built-in Functions
Variable Typing
Strings
Single-quoted string literals
Tripe-quoted string literals
Raw String literals
Unicode literals
String operators and methods
Numeric literals
Math operators and expressions
Converting among types
Writing to the screen
String formatting
Legacy string formatting
Command line parameters
Reading from the keyboard
Flow Control
About flow control
What’s with the white space?
if and elif
Conditional expressions
Relational operators
Boolean operators
while loops
Alternate ways to exit a loop
Sequences
About sequences
Lists
Tuples
Indexing and slicing
Iterating through a sequence
Functions for all sequences
Using enumerate()
Operators and keywords for sequences
The xrange() function
Nested sequences
List comprehensions
Generator expressions
Working with files
Text file I/O
Opening a text file
The with block
Reading a text file
Writing to a text file
“Binary” (raw, or non-delimited) data
Dictionaries and Sets
About dictionaries
When to use dictionaries
Creating dictionaries
Getting dictionary values
Iterating through a dictionary
Reading file data into a dictionary
Counting with dictionaries
About sets
Creating sets
Working with sets
Functions
Defining a function
Function parameters
Global variables
Variable scope
Returning values
Sorting
Sorting overview
The sorted() function
Alternate keys
Lambda functions
Sorting collections of collections
Using operator.itemgetter()
Sorting dictionaries
Sorting in reverse
Sorting lists in place
Errors and Exception Handling
Syntax errors
Exceptions
Handling exceptions with try
Handling multiple exceptions
Handling generic exceptions
Ignoring exceptions
Using else
Cleaning up with finally
The standard exception hierarchy
Using Modules
What is a module?
The import statement
Where did the .pyc file come from?
Module search path
Zipped libraries
Creating Modules
Packages
Module aliases
When the batteries aren’t included
Regular Expressions
RE syntax overview
Regular expression metacharacters
RE Objects
Searching for patterns
Matching without re objects
Compilation flags
Grouping
Special groups
Replacing text
Replacing with a callback
Splitting a string
Using the Standard Library
The sys module
Interpreter information
STDIO
Launching external programs
Paths, directories, and filenames
Walking directory trees
Grabbing data from the web
Sending e-mail
Math functions
Random values
Dates and times
Zipped archives
An Introduction to Python Classes
About OO programming
Defining classes
Initializers
Instance methods
Properties
Class methods and data
Static methods
Private methods
Inheritance
Untangling the nomenclature
Bonus Exercises
Appendix A: Bibligraphy
Appendix B: Python Gotchas
Appendix C: Builtin Functions
Training locations
Python I: Essentials training across the U.S. and beyond.
We provide Python I: Essentials training onsite and live online for organizations throughout the United States and internationally.
View all Python I: Essentials training locations
Train your team with HSG
Private, instructor-led training customized for your organization.
- Onsite or live online delivery
- Customized curriculum
- Training for groups of 3 or more
- Flexible scheduling
- Experienced instructors
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.