Skip to content · ⁨Lompat ke konten⁩

← Learn to Code — Python, Java, C, SQL & Web · ⁨Belajar Memrogram — Python, Java, C, SQL & Web⁩

Python Practice · ⁨Latihan Python⁩

Coding challenges from 1★ to 5★. · ⁨Cabaran pengaturcaraan dari 1★ hingga 5★.⁩

python 108 Lessons · ⁨Pelajaran⁩

Every lesson runs in your browser — write real code, press Run, and the tasks check themselves. Free, no account needed, with translated notes paired with English. · ⁨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.⁩

Start the course · ⁨Mulai kursus⁩

Lessons in this course · ⁨Pelajaran dalam kursus ini⁩

  1. 01 Print a word · ⁨Cetak satu perkataan⁩ 1 required task · ★
  2. 02 Print another word · ⁨Cetak satu perkataan lagi⁩ 1 required task · ★
  3. 03 Print a sentence · ⁨Cetak satu ayat⁩ 1 required task · ★
  4. 04 Print with a ! · ⁨Cetak dengan !⁩ 1 required task · ★
  5. 05 Print two lines · ⁨Cetak dua baris⁩ 1 required task · ★
  6. 06 Print three lines · ⁨Cetak tiga baris⁩ 1 required task · ★
  7. 07 Print a number · ⁨Cetak satu nombor⁩ 1 required task · ★
  8. 08 Print a bigger number · ⁨Cetak angka yang lebih besar⁩ 1 required task · ★
  9. 09 Add two numbers · ⁨Tambah dua nombor⁩ 1 required task · ★
  10. 10 Add bigger numbers · ⁨Tambahkan angka yang lebih besar⁩ 1 required task · ★
  11. 11 Subtract · ⁨Tolak⁩ 1 required task · ★
  12. 12 Multiply · ⁨Darab⁩ 1 required task · ★
  13. 13 Divide · ⁨Bagi⁩ 1 required task · ★
  14. 14 Remainder · ⁨Baki⁩ 1 required task · ★
  15. 15 Use a variable · ⁨Gunakan variabel⁩ 1 required task · ★
  16. 16 A number variable · ⁨Pembolehubah nombor⁩ 1 required task · ★
  17. 17 Change a variable · ⁨Ubah nilai variabel⁩ 1 required task · ★
  18. 18 Add two variables · ⁨Tambah dua pembolehubah⁩ 1 required task · ★
  19. 19 Multiply two variables · ⁨Darab dua pembolehubah⁩ 1 required task · ★
  20. 20 Join two words · ⁨Gabungkan dua kata⁩ 1 required task · ★
  21. 21 Greet a name · ⁨Sapa seseorang dengan namanya⁩ 1 required task · ★
  22. 22 Repeat text · ⁨Ulangi teks⁩ 1 required task · ★
  23. 23 Ask for a name · ⁨Minta nama⁩ 1 required task · ★
  24. 24 Echo a number · ⁨Gema angka⁩ 1 required task · ★
  25. 105 Call a function · ⁨Panggil sebuah fungsi⁩ 1 required task · ★
  26. 106 Use what it gives back · ⁨Gunakan nilai yang dikembalikan⁩ 1 required task · ★
  27. 107 Finish the function · ⁨Selesaikan definisi fungsi⁩ 1 required task · ★
  28. 108 Write one yourself · ⁨Tulis sendiri satu fungsi⁩ 1 required task · ★★
  29. 25 Your first function · ⁨Fungsi pertama anda⁩ 1 required task · ★
  30. 26 Is it positive? · ⁨Adakah ia positif?⁩ 1 required task · ★
  31. 27 The bigger one · ⁨Yang lebih besar⁩ 1 required task · ★
  32. 28 The last item · ⁨Item terakhir⁩ 1 required task · ★
  33. 29 Is it even? · ⁨Apakah genap?⁩ 1 required task · ★
  34. 30 Sum a list · ⁨Jumlahkan daftar⁩ 1 required task · ★
  35. 31 Reverse a string · ⁨Balikkan string⁩ 1 required task · ★★
  36. 32 Count the vowels · ⁨Hitung huruf vokal⁩ 1 required task · ★★
  37. 33 FizzBuzz 1 required task · ★★★
  38. 34 Letter frequencies · ⁨Frekuensi huruf⁩ 1 required task · ★★★
  39. 35 Remove duplicates · ⁨Hapus duplikat⁩ 1 required task · ★★★
  40. 36 Second largest · ⁨Nilai terbesar kedua⁩ 1 required task · ★★★
  41. 37 Group anagrams · ⁨Kelompokkan anagram⁩ 1 required task · ★★★★
  42. 38 Flatten a nested list · ⁨Ratakan daftar bersarang⁩ 1 required task · ★★★★
  43. 39 RPN calculator · ⁨Kalkulator RPN⁩ 1 required task · ★★★★★
  44. 40 Run-length encoding · ⁨Pengkodean panjang rentang⁩ 1 required task · ★★★★★
  45. 41 Count to ten · ⁨Menghitung hingga sepuluh⁩ 1 required task · ★★
  46. 42 Even numbers · ⁨Angka genap⁩ 1 required task · ★★
  47. 43 Liftoff 1 required task · ★★
  48. 44 Star triangle · ⁨Segitiga bintang⁩ 1 required task · ★★
  49. 45 The 3 times table · ⁨Tabel kali 3⁩ 1 required task · ★★
  50. 46 Running total · ⁨Total berjalan⁩ 1 required task · ★★★
  51. 47 Largest without max · ⁨Terbesar tanpa max⁩ 1 required task · ★★★
  52. 48 Smallest without min · ⁨Terkecil tanpa min⁩ 1 required task · ★★★
  53. 49 Count the positives · ⁨Hitung yang positif⁩ 1 required task · ★★
  54. 50 Average of a list · ⁨Rata-rata sebuah daftar⁩ 1 required task · ★★★
  55. 51 Add up 1 to 100 · ⁨Jumlahkan 1 sampai 100⁩ 1 required task · ★★
  56. 52 Upside-down triangle · ⁨Segitiga terbalik⁩ 1 required task · ★★
  57. 53 FizzBuzz with 4 and 6 · ⁨FizzBuzz dengan 4 dan 6⁩ 1 required task · ★★★
  58. 54 Until you type stop · ⁨Hingga Anda mengetik stop⁩ 1 required task · ★★★
  59. 55 A list of squares · ⁨Daftar kuadrat⁩ 1 required task · ★★
  60. 56 Count a value · ⁨Hitung suatu nilai⁩ 1 required task · ★★
  61. 57 Keep the evens · ⁨Simpan yang genap⁩ 1 required task · ★★
  62. 58 Find the position · ⁨Temukan posisi⁩ 1 required task · ★★★
  63. 59 Smallest and largest · ⁨Terkecil dan terbesar⁩ 1 required task · ★★★
  64. 60 Above average · ⁨Di atas rata-rata⁩ 1 required task · ★★★
  65. 61 Binary to denary · ⁨Biner ke desimal⁩ 1 required task · ★★★★
  66. 62 Denary to binary · ⁨Desimal ke biner⁩ 1 required task · ★★★★
  67. 63 Digital root · ⁨Akar digital⁩ 1 required task · ★★★★
  68. 64 Caesar cipher · ⁨Kiper Caesar⁩ 1 required task · ★★★★
  69. 65 Bank account · ⁨Rekening bank⁩ 1 required task · ★★★★
  70. 66 Transpose a grid · ⁨Transposisi grid⁩ 1 required task · ★★★★
  71. 67 Most common word · ⁨Kata paling umum⁩ 1 required task · ★★★★★
  72. 68 Sieve of Eratosthenes · ⁨Saringan Eratosthenes⁩ 1 required task · ★★★★★
  73. 69 A row of Pascal's triangle · ⁨Baris segitiga Pascal⁩ 1 required task · ★★★★★
  74. 70 Tic-tac-toe winner · ⁨Pemenang tic-tac-toe⁩ 1 required task · ★★★★★
  75. 71 Is it big? · ⁨Apakah itu besar?⁩ 1 required task · ★
  76. 72 Pass or fail · ⁨Lulus atau gagal⁩ 1 required task · ★
  77. 73 Positive, negative or zero · ⁨Positif, negatif, atau nol⁩ 1 required task · ★
  78. 74 The bigger number · ⁨Angka yang lebih besar⁩ 1 required task · ★
  79. 75 Even or odd · ⁨Genap atau ganjil⁩ 1 required task · ★
  80. 76 Is it in range? · ⁨Apakah itu dalam rentang?⁩ 1 required task · ★★
  81. 77 Free entry · ⁨Masuk gratis⁩ 1 required task · ★★
  82. 78 Grade letter · ⁨Huruf nilai⁩ 1 required task · ★★
  83. 79 Divisible by both · ⁨Dapat dibagi keduanya⁩ 1 required task · ★★
  84. 80 Ticket price · ⁨Harga tiket⁩ 1 required task · ★★
  85. 81 Finish the countdown · ⁨Selesaikan hitungan mundur⁩ 1 required task · ★
  86. 82 The loop that never ends · ⁨Perulangan yang tidak pernah berhenti⁩ 1 required task · ★
  87. 83 Count up to five · ⁨Hitung naik hingga lima⁩ 1 required task · ★
  88. 84 Add up to five · ⁨Jumlahkan hingga lima⁩ 1 required task · ★
  89. 85 Double until it passes 100 · ⁨Gandakan hingga melewati 100⁩ 1 required task · ★★
  90. 86 Stop at the first over fifty · ⁨Berhenti pada yang pertama melebihi lima puluh⁩ 1 required task · ★★
  91. 87 Count down in twos · ⁨Hitung mundur dalam dua⁩ 1 required task · ★★
  92. 88 Until they type stop · ⁨Hingga mereka mengetik stop⁩ 1 required task · ★★
  93. 89 How many halvings? · ⁨Berapa banyak pembagian?⁩ 1 required task · ★★
  94. 90 A row of the times table · ⁨Baris dari tabel perkalian⁩ 1 required task · ★★
  95. 91 The first letter · ⁨Huruf pertama⁩ 1 required task · ★
  96. 92 The last letter · ⁨Huruf terakhir⁩ 1 required task · ★
  97. 93 The first three letters · ⁨Tiga huruf pertama⁩ 1 required task · ★
  98. 94 How long is it? · ⁨Seberapa panjangnya?⁩ 1 required task · ★
  99. 95 Shout it · ⁨Teriakkan⁩ 1 required task · ★
  100. 96 Initials · ⁨Inisial⁩ 1 required task · ★★
  101. 97 Ask for a name · ⁨Minta nama⁩ 1 required task · ★
  102. 98 Ask for two things · ⁨Minta dua hal⁩ 1 required task · ★
  103. 99 A number from input · ⁨Sebuah angka dari input⁩ 1 required task · ★
  104. 100 Add two numbers you were given · ⁨Jumlahkan dua angka yang diberikan kepada Anda⁩ 1 required task · ★★
  105. 101 Each letter on its own line · ⁨Setiap huruf pada baris tersendiri⁩ 1 required task · ★
  106. 102 Zero to four · ⁨Nol sampai empat⁩ 1 required task · ★
  107. 103 Count the letters · ⁨Hitung jumlah huruf⁩ 1 required task · ★
  108. 104 Add up one to five · ⁨Jumlahkan satu sampai lima⁩ 1 required task · ★

Language reference · ⁨Referensi Bahasa⁩

/know/reference/python

Log in or create account · ⁨Masuk atau buat akun⁩

IGCSE, A-Level & AP