Lompat ke konten
Belajar Memrogram — Python, Java, C, SQL & Web

Python for A-Level CS

Data structures, algorithms, and OOP for Cambridge 9618.

  • python
  • 19 Pelajaran
  • 15 videos
  • Berjalan di browser Anda

Pada perangkat ini: 0 dari 19 pelajaran diselesaikan

Mulai kursus

Setiap pelajaran berjalan di browser Anda — tulis kode nyata, tekan Jalankan, dan tugas memeriksa dirinya sendiri. Gratis, tidak perlu akun, dengan catatan terjemahan yang dipasangkan dengan bahasa Inggris.

Pelajaran dalam kursus ini

19 dari 19 pelajaran ditampilkan

  1. Nested loops & 2-D lists A loop inside a loop · A list of lists · Loop over a grid Lesson 1 · tugas yang di 4 · ★★★ Video
  2. File teks Why files? · Open, use, close · The with block · Reading the lines Lesson 2 · tugas yang di 3 · ★★★ Video
  3. Pengecualian When things go wrong · try / except · Catch the right error · finally and raise Lesson 3 · tugas yang di 3 · ★★★ Video
  4. Tumpukan (Stacks) What is an ADT? · A stack is LIFO · push and pop with a list · peek and empty Lesson 4 · tugas yang di 3 · ★★★★ Video
  5. Antrian (Queues) A queue is FIFO · enqueue and dequeue with a list · front and empty · A note on speed Lesson 5 · tugas yang di 4 · ★★★★ Video
  6. Daftar terhubung (Linked lists) Nodes joined by links · A node is a small record · Walk the list · Why a linked list? Lesson 6 · tugas yang di 3 · ★★★★ Video
  7. Pencarian Searching a list · Linear search · Binary search · Compare them Lesson 7 · tugas yang di 3 · ★★★ Video
  8. Pengurutan Putting items in order · Bubble sort · Insertion sort · Compare them Lesson 8 · tugas yang di 3 · ★★★★ Video
  9. Recursion A function that calls itself · Base case and recursive case · A worked example: factorial · How the computer runs it Lesson 9 · tugas yang di 3 · ★★★★ Video
  10. Kelas & objek A class is a blueprint · init and attributes · Methods · Enumerated types Lesson 10 · tugas yang di 3 · ★★★ Video
  11. Inheritance & encapsulation Build on an existing class · Call the parent with super() · Override a method · Encapsulation Lesson 11 · tugas yang di 4 · ★★★★ Video
  12. Paradigma pemrograman What is a paradigm? · Imperative and procedural · Object-oriented · Declarative Lesson 12 · tugas yang di 3 · ★★★ Video
  13. Tabel hash Hash tables: fast lookup · A hash function · Collisions · Linear probing Lesson 13 · tugas yang di 3 · ★★★★ Video
  14. Pohon pencarian biner (BST) The BST rule · A node · Inserting a value Lesson 14 · tugas yang di 3 · ★★★★★ Video
  15. Graf Representing a graph: adjacency list · Adding an edge · Walking the neighbours Lesson 15 · tugas yang di 3 · ★★★★★ Video
  16. Classes with private attributes Private attributes keep the data safe · Getters and setters · Double underscores use name mangling · A list of objects Lesson 16 · tugas yang di 3 · ★★★★
  17. 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 · tugas yang di 2 · ★★★★
  18. Records in a text file Read every line with readline() · Catch a missing file · Write records back to a file Lesson 18 · tugas yang di 3 · ★★★★
  19. Recursive binary search and random numbers Binary search, written recursively · Random numbers Lesson 19 · tugas yang di 2 · ★★★★
Open the Python reference Every topic in one place, with short examples you can run.

Di mana untuk belajar lebih lanjut

Masuk atau buat akun

IGCSE, A-Level & AP