- Computer and Program
- Programming Language
- Features of Python
- Introduction to Python

Computer and Program, What is Program?
Program = Data + Algorithm

Program = Data + Algorithm
Computer and Program, What is Program?

Computer and Program, What is Computer




Computer and Program, What is Computer

Computer is the machine to execute programs :)

Computer and Program, What is Computer

What is Programming Language
Programming Language interleaves between human and computer


Python Features - Dynamic
Programmers don't have to declare the types before using variables in Python

Python Features - Object-oriented
Python can be object-oriented

Python Features - Object-oriented
Python can be object-oriented

Introduction to Python
- Data Storage/Operation
- Logic Control
Program = Data + Algorithm
- Function
- Class
- Input/Output
- Syntax

Every Python variable has its type
- int(eger)
- float(ing-point number)
- bool(ean)
- str(ing)
- list
- tuple
- set
- dict(ionary)
Introduction to Python, Data Storage

Every Python variable has its type
Every Python variable is a reference
Introduction to Python, Data Storage
- immutable
- mutable
Introduction to Python, Data Storage
Every Python variable has its type
Every Python variable is a reference
- conditional branching: if/elif/else
- loop: while/for
Introduction to Python, Logic Control

- Function definition
- name
- parameters
- return value
- Function call
- call self-defined functions
- call inherent functions
- call from packages
Introduction to Python, Function

- Class definition
- name
- fields/attributes
- funtions/methods
- Class instantiation
- Invoke on objects
- constructor
Introduction to Python, Class

- Input
- standard input
- file input
- Output
- standard output
- file output
Introduction to Python, Input/Output

Syntax is the rules to be observed when programming
Introduction to Python, Syntax
Syntax of Python is quite close to natural language, and will be covered during demonstration

Quick Python English
By Chunxiao Ye
Quick Python English
- 109