Description
In this course, you will learn:
- Learn how to use Python 3 to create well-designed scripts and maintain existing projects.
- This course covers the basics of the language syntax and usage, as well as advanced features such as objects, generators, and exceptions.
- Learn how types and values are related to objects; how to use control statements, loops, and functions; and how to work with generators and decorators.
Syllabus:
- Introduction
- Exercise Files
- About Python 3
1. Installation
- Installing Python and PyCharm on a Mac
- Installing Python and Komodo on Windows
2. Language Overview
- About the overview
- Hello world
- Python anatomy
- Expressions and statements
- Whitespace and comments
- Using print()
- Blocks and scope
- Conditionals
- Loops
- Functions
- Objects
3. Types and Values
- Overview of types and values
- The string type
- Numeric types
- The bool type
- Sequence types
- type() and id()
4. Conditionals
- Conditional syntax
- Conditional operators
- Conditional assignment
5. Operators
- Arithmetic operators
- Bitwise operators
- Comparison operators
- Boolean operators
- Operator precedence
6. Loops
- Python loops
- The while loop
- The for loop
- Additional controls
7. Functions
- Defining a function
- Function arguments
- Argument lists
- Keyword arguments
- Return values
- Generators
- Decorators
8. Structured Data
- Basic data structures
- Lists and tuples
- Dictionaries
- Sets
- List comprehension
- Mixed structures
9. Classes
- Creating a class
- Constructing an object
- Class methods
- Object data
- Inheritance
- Iterator objects
10. Exceptions
- Handling exceptions
- Reporting errors
11. String Objects
- Overview of string objects
- Common string methods
- Formatting strings
- Splitting and joining
12. File I/O
- Opening files
- Text vs. binary mode
- Text files
- Binary files
13. Built-in Functions
- Numeric functions
- String functions
- Container functions
- Object and class functions
14. Modules
- Using standard modules
- Creating a module
15. Databases
- Python database API
- A database interface
- Example: Short URL database