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

Python Basics

Langkah awal Anda dalam pemrograman — tidak perlu pengalaman.

  • python
  • 22 Pelajaran
  • 6 projects
  • 15 videos
  • Berjalan di browser Anda

Pada perangkat ini: 0 dari 22 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

26 dari 26 pelajaran ditampilkan

Part 1 You build: Project: Mad Libs

  1. Jalankan! Tombol-tombol · Ketika terjadi kesalahan · Ketika program menunggu Anda Lesson 0 · tugas yang di 3 · ★
  2. Program pertamamu Show text with print · Strings · Comments Lesson 1 · tugas yang di 3 · ★ Video
  3. Variabel A box with a name · Make a variable · Naming rules · Change a variable Lesson 2 · tugas yang di 3 · ★ Video
  4. Angka & operator Two kinds of number · Add, subtract, multiply, divide · Whole-number division, remainder, powers · Order of operations Lesson 3 · tugas yang di 3 · ★ Video
  5. Mendapatkan input Ask the user with input · When your program waits · input always gives a string · Turn text into a number Lesson 4 · tugas yang di 3 · ★ Video
  6. Bekerja dengan string Letters have positions · Take a slice · Length and changing case · f-strings build text Lesson 5 · tugas yang di 4 · ★★ Video
  7. Proyek Project: Mad Libs Collect the words · Change a word · A title with a line under it Proyek · ★★

Part 2 You build: Project: Guess the number

  1. Mengambil keputusan Making a choice · Comparisons · if / elif / else · The remainder Lesson 6 · tugas yang di 4 · ★★ Video
  2. Menghitung loop Repeat with for · Counting with range · Build a total (accumulator) · Words and a number on one line Lesson 7 · tugas yang di 4 · ★★ Video
  3. Loop While Loop while a condition is true · Always change the condition · break and continue · Checking before or after Lesson 8 · tugas yang di 3 · ★★ Video
  4. Proyek Project: Guess the number One guess · Keep guessing · Print the count · The sentence Proyek · ★★★

Part 3 You build: Project: Quiz with a score

  1. Lists (1-D arrays) A list holds many values · Get and change items · Add items and count them · Loop over a list Lesson 9 · tugas yang di 3 · ★★ Video
  2. Proyek Project: Quiz with a score Two lists that match · Keep the score · Forgive the typing Proyek · ★★★

Part 4 You build: Project: Rock, paper, scissors

  1. Fungsi Name a block of code · Give it inputs (parameters) · Send back a result (return) · return vs print Lesson 10 · tugas yang di 3 · ★★ Video
  2. Proyek Project: Rock, paper, scissors Who wins? · Functions can use functions · Check what the player typed · Play for real Proyek · ★★★

Part 5 You build: Project: Text adventure

  1. Skop & argumen Local variables · Global variables · Default values · How arguments are passed Lesson 11 · tugas yang di 4 · ★★★ Video
  2. Dictionaries (records) Store data by name · Get and set values · A dictionary as a record · Check and loop Lesson 12 · tugas yang di 3 · ★★★ Video
  3. Proyek Project: Text adventure A dictionary inside a dictionary · Is there a door? · Follow a list of directions · Play for real Proyek · ★★★★

Part 6 You build: Project: Hangman

  1. Perencanaan & pseudocode Plan before you code · Decomposition · Abstraction · Structured English Lesson 13 · tugas yang di 3 · ★★ Video
  2. Kesalahan & pengujian Three kinds of error · Syntax errors · Runtime errors · Logic errors Lesson 14 · tugas yang di 3 · ★★★ Video
  3. Menyatukan semuanya The plan · Handy built-ins for lists · A pattern you will reuse: count items that pass a test Lesson 15 · tugas yang di 3 · ★★★ Video
  4. Proyek Project: Hangman Plan first · Build a string letter by letter · Stop as soon as you know · The game loop Proyek · ★★★★

Pembacaan dan sumber daya

  1. Sejarah singkat Python Where Python came from · Why the funny name · Built for people to read · Python today Pembacaan dan sumber daya
  2. Apa Python digunakan untuk What people build with Python · Websites and apps · Data, AI, and science · Automation Pembacaan dan sumber daya
  3. Di mana untuk belajar lebih lanjut Bermain dan berlatih · Baca dan rujuk · Kursus lain di situs ini · Tips Pembacaan dan sumber daya
  4. Siapkan komputer Anda Run Python on your own computer · Step 1 — Install Python · Step 2 — Install VS Code · Step 3 — Add the Python extension Pembacaan dan sumber daya
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