Python for A-Level CS
Data structures, algorithms, and OOP for Cambridge 9618.
- python
- 19 Bài học
- 15 videos
- Chạy trực tiếp trên trình duyệt của bạn
Trên thiết bị này: 0 trong số 19 bài học đã hoàn thành
Mỗi bài học chạy trên trình duyệt của bạn — viết mã thật, nhấn Chạy, và các nhiệm vụ tự kiểm tra. Miễn phí, không cần tài khoản, kèm ghi chú dịch song ngữ với tiếng Anh.
Các bài học trong khóa học này
Đang hiển thị 19 trong số 19 bài học
Không có bài học nào khớp. Xóa bộ lọc tìm kiếm hoặc chọn bộ lọc khác.
- Nested loops & 2-D lists A loop inside a loop · A list of lists · Loop over a grid Lesson 1 · 4 nhiệm vụ bắt buộc · ★★★ Video
- Tệp văn bản Why files? · Open, use, close · The with block · Reading the lines Lesson 2 · 3 nhiệm vụ bắt buộc · ★★★ Video
- Ngoại lệ When things go wrong · try / except · Catch the right error · finally and raise Lesson 3 · 3 nhiệm vụ bắt buộc · ★★★ Video
- Ngăn xếp (Stacks) What is an ADT? · A stack is LIFO · push and pop with a list · peek and empty Lesson 4 · 3 nhiệm vụ bắt buộc · ★★★★ Video
- Hàng đợi (Queues) A queue is FIFO · enqueue and dequeue with a list · front and empty · A note on speed Lesson 5 · 4 nhiệm vụ bắt buộc · ★★★★ Video
- Danh sách liên kết Nodes joined by links · A node is a small record · Walk the list · Why a linked list? Lesson 6 · 3 nhiệm vụ bắt buộc · ★★★★ Video
- Tìm kiếm Searching a list · Linear search · Binary search · Compare them Lesson 7 · 3 nhiệm vụ bắt buộc · ★★★ Video
- Sắp xếp Putting items in order · Bubble sort · Insertion sort · Compare them Lesson 8 · 3 nhiệm vụ bắt buộc · ★★★★ Video
- Recursion A function that calls itself · Base case and recursive case · A worked example: factorial · How the computer runs it Lesson 9 · 3 nhiệm vụ bắt buộc · ★★★★ Video
- Lớp & đối tượng A class is a blueprint · init and attributes · Methods · Enumerated types Lesson 10 · 3 nhiệm vụ bắt buộc · ★★★ Video
- Kế thừa & Bao đóng Build on an existing class · Call the parent with super() · Override a method · Encapsulation Lesson 11 · 4 nhiệm vụ bắt buộc · ★★★★ Video
- Các mô hình lập trình What is a paradigm? · Imperative and procedural · Object-oriented · Declarative Lesson 12 · 3 nhiệm vụ bắt buộc · ★★★ Video
- Bảng hash Hash tables: fast lookup · A hash function · Collisions · Linear probing Lesson 13 · 3 nhiệm vụ bắt buộc · ★★★★ Video
- Cây nhị phân tìm kiếm (BST) The BST rule · A node · Inserting a value Lesson 14 · 3 nhiệm vụ bắt buộc · ★★★★★ Video
- Đồ thị Representing a graph: adjacency list · Adding an edge · Walking the neighbours Lesson 15 · 3 nhiệm vụ bắt buộc · ★★★★★ Video
- Classes with private attributes Private attributes keep the data safe · Getters and setters · Double underscores use name mangling · A list of objects Lesson 16 · 3 nhiệm vụ bắt buộc · ★★★★
- Stacks and queues in fixed lists The exam's way: a fixed list and pointers · Why global? · A circular queue in a fixed list Lesson 17 · 2 nhiệm vụ bắt buộc · ★★★★
- Records in a text file Read every line with readline() · Catch a missing file · Write records back to a file Lesson 18 · 3 nhiệm vụ bắt buộc · ★★★★
- Recursive binary search and random numbers Binary search, written recursively · Random numbers Lesson 19 · 2 nhiệm vụ bắt buộc · ★★★★
Open the Python reference
Every topic in one place, with short examples you can run.
Nơi tìm hiểu thêm
- AS-level CS Pseudocode (this site) The 9618 exam writes algorithms in pseudocode — practise it here
- AS-Level pseudocode reference (this site) Every 9618 rule with runnable examples
- A-Level CS handouts (this site) Read the theory behind these topics — exam revision