Home About Courses Schedule Services Webinars Contact Search

Introduction to Python 3

SEE SCHEDULE

Duration: 4 Days

Method: Instructor-Led, Hands On

Price: $2250.00

Course Code: PY1005


Audience

This class is designed for students new to Python, or for students who have some exposure and need to expand their understanding.

Description

In this Python training course, students learn to program in Python. The course is aimed at students new to the language who may or may not have experience with other programming languages. The course was written using Python 3.8, but is relevant for all students using Python 3.

Objectives

Upon successful completion of this course, the student will be able to:

  • Learn how Python works and what it's good for
  • Understand Python's place in the world of programming languages
  • Learn to work with and manipulate strings in Python
  • Learn to perform math operations with Python
  • Learn to work with Python sequences: lists, arrays, dictionaries, and sets
  • Learn to collect user input and output results
  • Learn flow control processing in Python
  • Learn to write to and read from files using Python
  • Learn to write functions in Python
  • Learn to handle exceptions in Python
  • Learn to work with dates and times in Python

Prerequisites

Basic computer skills and familiarity with basic programming concepts like variables, loops, and functions.

Topics

  • I. Python Basics
    • Getting Familiar with the Terminal
    • Running Python
    • Running a Python File
    • Exercise: Hello, world!
    • Literals
    • Exercise: Exploring Types
    • Variables
    • Exercise: A Simple Python Script
    • Constants and Deleting Variables
    • Writing a Python Module
    • print() Function
    • Collecting User Input
    • Exercise: Hello, You!
    • Reading from and Writing to Files
    • Exercise: Working with Files
  • II. Functions and Modules
    • Defining Functions
    • Variable Scope
    • Global Variables
    • Function Parameters
    • Exercise: A Function with Parameters
    • Returning Values
    • Exercise: Parameters with Default Values
    • Returning Values
    • Importing Modules
    • Methods vs. Functions
  • III. Math
    • Arithmetic Operators
    • Exercise: Floor and Modulus
    • Assignment Operators
    • Precedence of Operations
    • Built-in Math Functions
    • The math Module
    • The random Module
    • Exercise: How Many Pizzas Do We Need?
    • Exercise: Dice Rolling
  • IV. Python Strings
    • Quotation Marks and Special Characters
    • String Indexing
    • Exercise: Indexing Strings
    • Slicing Strings
    • Exercise: Slicing Strings
    • Concatenation and Repetition
    • Exercise: Repetition
    • Combining Concatenation and Repetition
    • Python Strings are Immutable
    • Common String Methods
    • String Formatting
    • Exercise: Playing with Formatting
    • Formatted String Literals (f-strings) (introduced in Python 3.6)
    • Built-in String Functions
    • Exercise: Outputting Tab-delimited Text
  • V. Iterables: Sequences, Dictionaries, and Sets
    • Definitions
    • Sequences
    • Lists
    • Sequences and Random
    • Exercise: Remove and Return Random Element
    • Tuples
    • Ranges
    • Converting Sequences to Lists
    • Indexing
    • Exercise: Simple Rock, Paper, Scissors Game
    • Slicing
    • Exercise: Slicing Sequences
    • min(), max(), and sum()
    • Converting between Sequences and Strings
    • Unpacking Sequences
    • Dictionaries
    • The len() Function
    • Exercise: Creating a Dictionary from User Input
    • Sets
    • *args and **kwargs
  • VI. Virtual Environments, Packages, and pip
    • Exercise: Creating, Activiting, Deactivating, and Deleting a Virtual Environment
    • Packages with pip
    • Exercise: Working with a Virtual Environment
  • VII. Flow Control
    • Conditional Statements
    • Compound Conditions
    • The is and is not Operators
    • all() and any() and the Ternary Operator
    • In Between
    • Loops in Python
    • Exercise: All True and Any True
    • break and continue
    • Looping through Lines in a File
    • Exercise: Word Guessing Game
    • The else Clause in Loops
    • Exercise: for...else
    • The enumerate() Function
    • Generators
    • List Comprehensions
  • VIII. Exception Handling
    • Exception Basics
    • Generic Exceptions
    • Exercise: Raising Exceptions
    • The else and finally Clauses
    • Using Exceptions for Flow Control
    • Exercise: Running Sum
    • Raising Your Own Exceptions
  • IX. Python Dates and Times
    • Understanding Time
    • The time Module
    • Time Structures
    • Times as Strings
    • Time and Formatted Strings
    • Pausing Execution with time.sleep()
    • The datetime Module
    • datetime.datetime Objects
    • Exercise: What Color Pants Should I Wear?
    • datetime.timedelta Objects
    • Exercise: Report on Departure Times
  • X. File Processing
    • Opening Files
    • Exercise: Finding Text in a File
    • Writing to Files
    • Exercise: Writing to Files
    • Exercise: List Creator
    • The os Module
    • os.walk()
    • The os.path Module
    • A Better Way to Open Files
    • Exercise: Comparing Lists
  • XI. PEP8 and Pylint
    • PEP8
    • Pylint