Python for A-Level CS
Data structures, algorithms, and OOP for Cambridge 9618.
- питон
- 19 Уроки
- 15 videos
- Работает в вашем браузере
На этом устройстве: завершено 0 из 19 уроков
Каждый урок работает в вашем браузере — пишите реальный код, нажимайте «Выполнить», и задания проверяют себя сами. Бесплатно, регистрация не требуется, с переведёнными заметками, сопоставленными с английским языком.
Уроки в этом курсе
Показано 19 из 19 уроков
Никакие уроки не совпадают. Очистите поисковый запрос или выберите другой фильтр.
- Nested loops & 2-D lists A loop inside a loop · A list of lists · Loop over a grid Lesson 1 · 4 обязательных заданий · ★★★ Видео
- Текстовые файлы Why files? · Open, use, close · The with block · Reading the lines Lesson 2 · 3 обязательных заданий · ★★★ Видео
- Исключения When things go wrong · try / except · Catch the right error · finally and raise Lesson 3 · 3 обязательных заданий · ★★★ Видео
- Стеки What is an ADT? · A stack is LIFO · push and pop with a list · peek and empty Lesson 4 · 3 обязательных заданий · ★★★★ Видео
- Очереди A queue is FIFO · enqueue and dequeue with a list · front and empty · A note on speed Lesson 5 · 4 обязательных заданий · ★★★★ Видео
- Связные списки Nodes joined by links · A node is a small record · Walk the list · Why a linked list? Lesson 6 · 3 обязательных заданий · ★★★★ Видео
- Поиск Searching a list · Linear search · Binary search · Compare them Lesson 7 · 3 обязательных заданий · ★★★ Видео
- Сортировка Putting items in order · Bubble sort · Insertion sort · Compare them Lesson 8 · 3 обязательных заданий · ★★★★ Видео
- Рекурсия A function that calls itself · Base case and recursive case · A worked example: factorial · How the computer runs it Lesson 9 · 3 обязательных заданий · ★★★★ Видео
- Классы и объекты A class is a blueprint · init and attributes · Methods · Enumerated types Lesson 10 · 3 обязательных заданий · ★★★ Видео
- Наследование и инкапсуляция Build on an existing class · Call the parent with super() · Override a method · Encapsulation Lesson 11 · 4 обязательных заданий · ★★★★ Видео
- Парадигмы программирования What is a paradigm? · Imperative and procedural · Object-oriented · Declarative Lesson 12 · 3 обязательных заданий · ★★★ Видео
- Хэш-таблицы Hash tables: fast lookup · A hash function · Collisions · Linear probing Lesson 13 · 3 обязательных заданий · ★★★★ Видео
- Бинарные деревья поиска The BST rule · A node · Inserting a value Lesson 14 · 3 обязательных заданий · ★★★★★ Видео
- Графы Representing a graph: adjacency list · Adding an edge · Walking the neighbours Lesson 15 · 3 обязательных заданий · ★★★★★ Видео
- 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 обязательных заданий · ★★★★
- 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 обязательных заданий · ★★★★
- Records in a text file Read every line with readline() · Catch a missing file · Write records back to a file Lesson 18 · 3 обязательных заданий · ★★★★
- Recursive binary search and random numbers Binary search, written recursively · Random numbers Lesson 19 · 2 обязательных заданий · ★★★★
Open the Python reference
Every topic in one place, with short examples you can run.
Где узнать больше
- 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