Python Programming Primer / Quick Start to Python
Course Objectives
This course combines expert lecture, real-world demonstrations and group discussions with machine-based practical labs and exercises. Our engaging instructors and mentors are highly experienced practitioners who bring years of current "on-the-job" experience into every classroom. Throughout the hands-on course students will learn to write essential Python scripts using the most current and efficient skills and techniques.
Working in a hands-on learning environment, guided by our expert team, attendees will explore:
- Uses for Python in software development, testing and systems administration environments
- How to develop basic Python applications for a variety of uses
- Packaging and distribution of Python applications and modules
Course Prerequisites
This basic level course provides an excellent kick start for users new to Python, enabling them to use basic Python skills on the job in a variety of ways. Students can apply the course skills to use Python in basic web development projects or automate or simplify common tasks with the use of Python scripts. The course also serves as a solid primer course / foundation for continued Python study in support for next level web development with Python, Python for data science / machine learning or Python for systems admin or networking support.
In order to get the most out of this course, students should have basic familiarity with any other programming or scripting language, as basic scripting isn’t covered in this agenda. Students should have a working, user-level knowledge of Unix/Linux, Mac, or Windows.
Course Outline
Day One
Session: An Overview of Python
- What is python?
- Python Timeline
- Advantages/Disadvantages of Python
- Getting help with pydoc
Session: The Python Environment
- Starting Python
- Using the interpreter
- Running a Python script
- Python scripts on Unix/Windows
- Editors and IDEs
Session: Getting Started
- Using variables
- Builtin functions
- Strings
- Numbers
- Converting among types
- Writing to the screen
- Command line parameters
Session: Flow Control
- About flow control
- White space
- Conditional expressions
- Relational and Boolean operators
- While loops
- Alternate loop exits
Session: Sequences
- About sequences
- Lists and list methods
- Tuples
- Indexing and slicing
- Iterating through a sequence
- Sequence functions, keywords, and operators
- List comprehensions
- Generator Expressions
- Nested sequences
Day Two
Session: Working with files
- File overview
- Opening a text file
- Reading a text file
- Writing to a text file
- Reading and writing raw (binary) data
- Converting binary data with struct
Session: Dictionaries and Sets
- About dictionaries
- Creating dictionaries
- Iterating through a dictionary
- About sets
- Creating sets
- Working with sets
Session: Functions
- Defining functions
- Parameters
- Global and local scope
- Nested functions
- Returning values
Session: Sorting
- The sorted() function
- Alternate keys
- Lambda functions
- Sorting collections
- Using operator.itemgetter()
- Reverse sorting
Session: Errors and Exception Handling
- Syntax errors
- Exceptions
- Using try/catch/else/finally
- Handling multiple exceptions
- Ignoring exceptions
Bonus Sessions / Time-Permitting
Session: Modules and Packages
- The import statement
- Module search path
- Creating Modules
- Using packages
- Function and Module aliases
Session: Regular Expressions
- RE syntax overview
- RE Objects
- Searching and matching
- Compilation flags
- Groups and special groups
- Replacing text
- Splitting strings
Session: The standard library
- The sys module
- Launching external programs
- Math functions
- Random numbers
- The string module
- Reading CSV data
Session: Introduction to Object Oriented Classes
- About o-o programming
- Defining classes
- Constructors
- Methods
- Instance data
- Properties
- Class methods and data
Sorry! It looks like we haven’t updated our dates for the class you selected yet. There’s a quick way to find out. Contact us at 502.265.3057 or email info@training4it.com
Request a Date