Rapid Introduction to Python for Novices

This course provides a very fast introduction to Python for new programmers. Because a lot of content is covered in a short period of time, less time is dedicated to hands-on exercises than in our more thorough Introduction to Python class.

Goals
  1. Learn how Python works and what it's good for.
  2. Understand Python's place in the world of programming languages.
  3. Learn to work with and manipulate strings in Python.
  4. Learn to perform math operations with Python.
  5. Learn to work with Python sequences: lists, arrays, dictionaries, and sets.
  6. Learn to collect user input and output results.
  7. Learn flow control processing in Python.
  8. Learn to write to and read from files using Python.
  9. Learn to write functions in Python.
Outline
  1. Python Basics
    1. Running Python
      1. Python Interpreter in Interactive Mode
      2. IDLE
      3. Commercial and Free Python IDEs
    2. Hello, World!
    3. Literals
    4. Python Comments
    5. Data Types
    6. Variables
      1. Variable Names
      2. Variable Assignment
      3. Simultaneous Assignment
      4. Constants
      5. Deleting Variables
    7. Writing a Python Module
      1. The main() Function
    8. print() Function
    9. Named Arguments
    10. Collecting User Input
    11. Getting Help
  2. Functions and Modules
    1. Defining Functions
    2. Variable Scope
    3. Global Variables
    4. Function Parameters
      1. Using Parameter Names in Function Calls
      2. Default Values
    5. Returning Values
    6. Importing Modules
      1. Module Search Path
      2. pyc Files
  3. Math
    1. Arithmetic Operators
    2. Modulus and Floor Division
    3. Assignment Operators
      1. Order of Operations
    4. Built-in Math Functions
    5. The math Module
    6. The random Module
    7. Seeding
  4. Python Strings
    1. Quotation Marks and Special Characters
      1. Escaping Characters
      2. Triple Quotes
    2. String Indexing
    3. Slicing Strings
    4. Concatenation and Repetition
    5. Common String Methods
    6. String Formatting
      1. Format Specification
      2. Long Lines of Code
    7. Built-in String Functions
  5. Iterables: Sequences, Dictionaries, and Sets
    1. Definitions
    2. Sequences
      1. Lists
      2. Deleting List Elements
      3. Sequences and Random
      4. Tuples
        1. The Immutability of Tuples
      5. Lists vs. Tuples
      6. Ranges
      7. Indexing and Slicing
      8. Converting Sequences to Strings with str.join(seq)
      9. Splitting Strings into Lists
    3. Unpacking Sequences
    4. Dictionaries
      1. The update() Method
      2. The setdefault() Method
      3. Dictionary View Objects
      4. Deleting Dictionary Keys
    5. The len() Function
    6. Sets
    7. *args and **kwargs
  6. Flow Control
    1. Conditional Statements
    2. The is and is not Operators
    3. Python's Ternary Operator
    4. Loops in Python
      1. while Loops
      2. for Loops
      3. break and continue
      4. The else Clause
    5. The enumerate() Function
    6. Generators
      1. The next() Function
    7. List Comprehensions
  7. File Processing
    1. Opening Files
      1. Methods of File Objects
    2. The os and os.path Modules
Class Materials

Each student in our Live Online and our Onsite classes receives a comprehensive set of materials, including course notes and all the class examples.