Review the syntax of this simple programming language, and learn how to write scripts, create modules, and integrate a database with Python 3 and the Python database API.
Overview
Syllabus
Introduction
- Welcome
- Exercise files
- About Python 3
- Installing Python and PyCharm on Mac or Windows
- About the overview
- Hello world
- Python anatomy
- Expressions and statements
- Whitespace and comments
- Using print()
- Blocks and scope
- Conditionals
- Loops
- Functions
- Objects
- Overview of types and values
- The string type
- Numeric types
- The bool type
- Sequence types
- type() and id()
- Conditional syntax
- Conditional operators
- Conditional assignment
- Arithmetic operators
- Bitwise operators
- Comparison operators
- Boolean operators
- Operator precedence
- Python loops
- The while loop
- The for loop
- Additional controls
- Defining a function
- Function arguments
- Argument lists
- Keyword arguments
- Return values
- Generators
- Decorators
- Basic data structures
- Lists and tuples
- Dictionaries
- Sets
- List comprehension
- Mixed structures
- Creating a class
- Constructing an object
- Class methods
- Object data
- Inheritance
- Iterator objects
- Handling exceptions
- Reporting errors
- Overview of string objects
- Common string methods
- Formatting strings
- Splitting and joining
- Opening files
- Text vs. binary mode
- Text files
- Binary files
- Numeric functions
- String functions
- Container functions
- Object and class functions
- Using standard modules
- Creating a module
- Python database API
- A database interface
- Example: Short URL database
- Wrap up
Taught by
Bill Weinman