Bạn đang xem thử công khai
Đăng nhập để lưu tiến độ, làm bài tập, thảo luận và nhận phản hồi.
1.1 Python and Basic Syntax
1.1 Python and Basic Syntax
After this unit you will: choose the right Python version, and write a piece of code with no basic syntax errors.
Key points
- Always use Python 3 — Python 2 reached end of life in 2020.
- Python is case-sensitive:
age,Age,AGEare three different names. - Blocks are defined by indentation (4 spaces per PEP 8); the line that opens a block ends with
:. - A single-line comment starts with
#.