Let us help you find the training program you are looking for.

If you can't find what you are looking for, contact us, we'll help you find it. We have over 800 training programs to choose from.

banner-img

Course Skill Level:

Foundational to Intermediate

Course Duration:

4 day/s

  • Course Delivery Format:

    Live, instructor-led.

  • Course Category:

    Big Data & Data Science

  • Course Code:

    IPYTHOS21J12

Who should attend & recommended skills:

Advanced users, system administrators, and website administrators with basic Unix/Linux, Mac, or Windows experience

Who should attend & recommended skills

  • This course is appropriate for advanced users, system administrators and website administrators who want to use Python to support their server installations, as well as anyone else who wants to automate or simplify common tasks with the use of Python scripts.
  • Unix/Linux, Mac, or Windows: Basic (1-2 years’ experience) at user-level
  • Programming language (any): Basic (1-2 years’ experience) helpful, not required

About this course

This course leads the student from the basics of writing and running Python 3 scripts to more advanced features such as file operations, regular expressions, working with binary data, and using the extensive functionality of Python modules. Extra emphasis is placed on features unique to Python, such as tuples, array slices, and output formatting.
This is a hands-on programming class. All concepts are reinforced by informal practice during the lecture followed by graduated lab exercises.
Introduction to Python is a practical introduction to a working programming language, not an academic overview of syntax and grammar. Students will immediately be able to use Python to complete tasks in the real world.

Skills acquired & topics covered

  • An overview of Python
  • The Python Environment
  • Getting Started
  • Flow Control
  • Array types
  • Working with files
  • Dictionaries and Sets
  • Functions
  • Sorting
  • Errors and Exception Handling
  • Using Modules
  • Regular Expressions
  • Using the Standard Library
  • An Introduction to Python classes

Course breakdown / modules

  • What is Python?
  • Python Timeline
  • Advantages/Disadvantages of Python
  • Getting help with pydoc

  • Starting Python
  • Using the interpreter
  • Running a Python script
  • Python scripts on Unix/Windows
  • Editors and IDEs

  • Using variables
  • Builtin functions
  • Strings
  • Numbers
  • Converting among types
  • Writing to the screen
  • Command line parameters

  • About flow control
  • White space
  • Conditional expressions
  • Relational and Boolean operators
  • While loops
  • Alternate loop exits

  • About array types
  • Lists and list methods
  • Tuples
  • Indexing and slicing
  • Iterating through a sequence
  • Sequence functions, keywords, and operators
  • List comprehensions
  • Nested sequences

  • File overview
  • Opening a text file
  • Reading a text file
  • Writing to a text file
  • Screen output without formatting
  • Raw (binary) data

  • About dictionaries
  • Creating dictionaries
  • Iterating through a dictionary
  • About sets
  • Creating sets
  • Working with sets

  • About sequences
  • Function parameters
  • Global variables
  • Global scope
  • Returning values

  • The sorted() function
  • Alternate keys
  • Lambda functions
  • Sorting collections
  • Reverse sorting

  • Syntax errors
  • Exceptions
  • Using try/catch/else/finally
  • Handling multiple exceptions
  • Ignoring exceptions

  • The import statement
  • Module search path
  • Creating Modules
  • Function and Module aliases
  • Using packages

  • RE syntax overview
  • Basic patterns
  • RE Objects
  • Searching and matching
  • Compilation flags
  • Grouping
  • Replacing text
  • Splitting a string

  • The sys module
  • Launching external programs
  • Walking directory trees
  • Grabbing web pages
  • Sending e-mail
  • Paths, directories, and filenames
  • Dates and times
  • Zipped archives

  • About o-o programming
  • Defining classes
  • Constructors
  • Instance methods
  • Instance data
  • Class methods and data
  • Destructors