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.
Prerequisites
Basic computer knowledge and keyboarding skills
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
HSG courses are taught by the experienced instructors who are proven experts in their field. Our instructors are highly knowledgeable, HSG courses are taught by the experienced instructors who are proven experts in their field. Our instructors are highly knowledgeable, friendly, reliable and inspiring. They speak and teach industry's best practices and often customize classes to meet individual needs.
Students are encouraged to ask questions and participate in discussions and training-labs.