ข้ามไปยังเนื้อหา
เรียนรู้การเขียนโค้ด — Python, Java, C, SQL & Web

ฝึกฝน Python

Coding challenges from 1★ to 5★.

  • Python
  • 108 บทเรียน
  • ทำงานบนเบราว์เซอร์ของคุณ

บนอุปกรณ์นี้: สำเร็จ 0 จาก 108 บทเรียน

เริ่มหลักสูตร

ทุกบทเรียนทำงานบนเบราว์เซอร์ของคุณ — เขียนโค้ดจริง กด Run และงานจะตรวจสอบตัวเองอัตโนมัติ ฟรี ไม่ต้องสมัครบัญชี พร้อมบันทึกคำแปลคู่กับภาษาอังกฤษ

บทเรียนในหลักสูตรนี้

แสดง 108 จาก 108 บทเรียน

  1. Print a word พิมพ์คำ 01 · งานที่ต้องทำ 1 รายการ · ★
  2. Print another word พิมพ์อีกคำหนึ่ง 02 · งานที่ต้องทำ 1 รายการ · ★
  3. Print a sentence พิมพ์ประโยค 03 · งานที่ต้องทำ 1 รายการ · ★
  4. Print with a ! พิมพ์ด้วย ! 04 · งานที่ต้องทำ 1 รายการ · ★
  5. Print two lines พิมพ์สองบรรทัด 05 · งานที่ต้องทำ 1 รายการ · ★
  6. Print three lines พิมพ์สามบรรทัด 06 · งานที่ต้องทำ 1 รายการ · ★
  7. Print a number พิมพ์ตัวเลข 07 · งานที่ต้องทำ 1 รายการ · ★
  8. Print a bigger number พิมพ์ตัวเลขที่ใหญ่ขึ้น 08 · งานที่ต้องทำ 1 รายการ · ★
  9. Add two numbers บวกสองตัวเลข 09 · งานที่ต้องทำ 1 รายการ · ★
  10. Add bigger numbers เพิ่มตัวเลขที่ใหญ่ขึ้น 10 · งานที่ต้องทำ 1 รายการ · ★
  11. Subtract ลบ 11 · งานที่ต้องทำ 1 รายการ · ★
  12. Multiply คูณ 12 · งานที่ต้องทำ 1 รายการ · ★
  13. Divide หาร 13 · งานที่ต้องทำ 1 รายการ · ★
  14. Remainder ส่วนเหลือ 14 · งานที่ต้องทำ 1 รายการ · ★
  15. Use a variable ใช้ตัวแปร 15 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Variables
  16. A number variable ตัวแปรตัวเลข 16 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Variables
  17. Change a variable เปลี่ยนค่าตัวแปร 17 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Variables
  18. Add two variables บวกตัวแปรสองตัว 18 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Variables
  19. Multiply two variables คูณตัวแปรสองตัว 19 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Variables
  20. Join two words เชื่อมต่อสองคำ 20 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Working with strings
  21. Greet a name อวยพรชื่อ 21 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Working with strings
  22. Repeat text ซ้ำข้อความ 22 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Working with strings
  23. Ask for a name ขอชื่อ 23 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Getting input
  24. Echo a number ส่องสะท้อนตัวเลข 24 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Getting input
  25. Call a function เรียกฟังก์ชัน 105 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Functions
  26. Use what it gives back ใช้สิ่งที่มันคืนกลับมา 106 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Functions
  27. Finish the function เสร็จสิ้นฟังก์ชัน 107 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Functions
  28. Write one yourself เขียนเองหนึ่งตัว 108 · งานที่ต้องทำ 1 รายการ · ★★
    ต่อยอดจาก: Python Basics · Functions
  29. Your first function ฟังก์ชันแรกของคุณ 25 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Functions
  30. Is it positive? เป็นบวกหรือไม่? 26 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Functions
  31. The bigger one ตัวที่ใหญ่กว่ากัน 27 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Functions
  32. The last item รายการสุดท้าย 28 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Functions
  33. Is it even? เป็นเลขคู่หรือไม่? 29 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Functions
  34. Sum a list รวมลิสต์ 30 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Functions
  35. Reverse a string กลับหัวสตริง 31 · งานที่ต้องทำ 1 รายการ · ★★
    ต่อยอดจาก: Python Basics · Functions
  36. Count the vowels นับสระ 32 · งานที่ต้องทำ 1 รายการ · ★★
    ต่อยอดจาก: Python Basics · Functions
  37. FizzBuzz 33 · งานที่ต้องทำ 1 รายการ · ★★★
    ต่อยอดจาก: Python Basics · Functions
  38. Letter frequencies ความถี่ตัวอักษร 34 · งานที่ต้องทำ 1 รายการ · ★★★
    ต่อยอดจาก: Python Basics · Dictionaries (records)
  39. Remove duplicates ลบค่าซ้ำ 35 · งานที่ต้องทำ 1 รายการ · ★★★
    ต่อยอดจาก: Python Basics · Functions
  40. Second largest ค่ามากเป็นอันดับสอง 36 · งานที่ต้องทำ 1 รายการ · ★★★
    ต่อยอดจาก: Python Basics · Functions
  41. Group anagrams กลุ่ม anagram 37 · งานที่ต้องทำ 1 รายการ · ★★★★
    ต่อยอดจาก: Python Basics · Dictionaries (records)
  42. Flatten a nested list Flatten ลิสต์ซ้อน 38 · งานที่ต้องทำ 1 รายการ · ★★★★
    ต่อยอดจาก: Python Basics · Functions
  43. RPN calculator เครื่องคิดเลข RPN 39 · งานที่ต้องทำ 1 รายการ · ★★★★★
    ต่อยอดจาก: Python Basics · Functions
  44. Run-length encoding 40 · งานที่ต้องทำ 1 รายการ · ★★★★★
    ต่อยอดจาก: Python Basics · Functions
  45. Count to ten นับถึงสิบ 41 · งานที่ต้องทำ 1 รายการ · ★★
    ต่อยอดจาก: Python Basics · Counting loops
  46. Even numbers เลขคู่ 42 · งานที่ต้องทำ 1 รายการ · ★★
    ต่อยอดจาก: Python Basics · Counting loops
  47. Liftoff 43 · งานที่ต้องทำ 1 รายการ · ★★
    ต่อยอดจาก: Python Basics · While loops
  48. Star triangle สามเหลี่ยมดาว 44 · งานที่ต้องทำ 1 รายการ · ★★
    ต่อยอดจาก: Python Basics · Counting loops
  49. The 3 times table ตารางคูณ 3 45 · งานที่ต้องทำ 1 รายการ · ★★
    ต่อยอดจาก: Python Basics · Counting loops
  50. Running total ผลรวมสะสม 46 · งานที่ต้องทำ 1 รายการ · ★★★
    ต่อยอดจาก: Python Basics · Lists (1-D arrays)
  51. Largest without max ค่ามากที่สุดโดยไม่ใช้ max 47 · งานที่ต้องทำ 1 รายการ · ★★★
    ต่อยอดจาก: Python Basics · Functions
  52. Smallest without min ค่าน้อยสุดโดยไม่ใช้ min 48 · งานที่ต้องทำ 1 รายการ · ★★★
    ต่อยอดจาก: Python Basics · Functions
  53. Count the positives นับจำนวนเลขบวก 49 · งานที่ต้องทำ 1 รายการ · ★★
    ต่อยอดจาก: Python Basics · Functions
  54. Average of a list ค่าเฉลี่ยของรายการ 50 · งานที่ต้องทำ 1 รายการ · ★★★
    ต่อยอดจาก: Python Basics · Functions
  55. Add up 1 to 100 บวกเลข 1 ถึง 100 51 · งานที่ต้องทำ 1 รายการ · ★★
    ต่อยอดจาก: Python Basics · Counting loops
  56. Upside-down triangle สามเหลี่ยมคว่ำ 52 · งานที่ต้องทำ 1 รายการ · ★★
    ต่อยอดจาก: Python Basics · Counting loops
  57. FizzBuzz with 4 and 6 FizzBuzz ด้วย 4 และ 6 53 · งานที่ต้องทำ 1 รายการ · ★★★
    ต่อยอดจาก: Python Basics · Counting loops
  58. Until you type stop จนกว่าจะพิมพ์ stop 54 · งานที่ต้องทำ 1 รายการ · ★★★
    ต่อยอดจาก: Python Basics · While loops
  59. A list of squares รายการกำลังสอง 55 · งานที่ต้องทำ 1 รายการ · ★★
    ต่อยอดจาก: Python Basics · Lists (1-D arrays)
  60. Count a value นับจำนวนค่า 56 · งานที่ต้องทำ 1 รายการ · ★★
    ต่อยอดจาก: Python Basics · Functions
  61. Keep the evens เก็บเลขคู่ 57 · งานที่ต้องทำ 1 รายการ · ★★
    ต่อยอดจาก: Python Basics · Functions
  62. Find the position หาตำแหน่ง 58 · งานที่ต้องทำ 1 รายการ · ★★★
    ต่อยอดจาก: Python Basics · Functions
  63. Smallest and largest น้อยสุดและมากที่สุด 59 · งานที่ต้องทำ 1 รายการ · ★★★
    ต่อยอดจาก: Python Basics · Functions
  64. Above average สูงกว่าค่าเฉลี่ย 60 · งานที่ต้องทำ 1 รายการ · ★★★
    ต่อยอดจาก: Python Basics · Functions
  65. Binary to denary Binary เป็น denary 61 · งานที่ต้องทำ 1 รายการ · ★★★★
    ต่อยอดจาก: Python Basics · Functions
  66. Denary to binary Denary เป็น binary 62 · งานที่ต้องทำ 1 รายการ · ★★★★
    ต่อยอดจาก: Python Basics · Functions
  67. Digital root 63 · งานที่ต้องทำ 1 รายการ · ★★★★
    ต่อยอดจาก: Python Basics · Functions
  68. Caesar cipher 64 · งานที่ต้องทำ 1 รายการ · ★★★★
    ต่อยอดจาก: Python Basics · Functions
  69. Bank account บัญชีธนาคาร 65 · งานที่ต้องทำ 1 รายการ · ★★★★
    ต่อยอดจาก: Python Basics · Functions
  70. Transpose a grid สลับแถวและหลักตาราง 66 · งานที่ต้องทำ 1 รายการ · ★★★★
    ต่อยอดจาก: Python Basics · Functions
  71. Most common word คำที่พบบ่อยที่สุด 67 · งานที่ต้องทำ 1 รายการ · ★★★★★
    ต่อยอดจาก: Python Basics · Dictionaries (records)
  72. Sieve of Eratosthenes กรอง eratosthenes 68 · งานที่ต้องทำ 1 รายการ · ★★★★★
    ต่อยอดจาก: Python Basics · Functions
  73. A row of Pascal's triangle แถวหนึ่งของสามเหลี่ยม Pascal 69 · งานที่ต้องทำ 1 รายการ · ★★★★★
    ต่อยอดจาก: Python Basics · Functions
  74. Tic-tac-toe winner ผู้ชนะเกม tic-tac-toe 70 · งานที่ต้องทำ 1 รายการ · ★★★★★
    ต่อยอดจาก: Python Basics · Functions
  75. Is it big? เป็นจำนวนมากหรือไม่? 71 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Making decisions
  76. Pass or fail ผ่านหรือล้มเหลว 72 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Making decisions
  77. Positive, negative or zero บวก ลบ หรือศูนย์ 73 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Making decisions
  78. The bigger number 74 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Making decisions
  79. Even or odd คู่หรือคี่ 75 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Making decisions
  80. Is it in range? อยู่ในช่วงหรือไม่? 76 · งานที่ต้องทำ 1 รายการ · ★★
    ต่อยอดจาก: Python Basics · Making decisions
  81. Free entry เข้าฟรี 77 · งานที่ต้องทำ 1 รายการ · ★★
    ต่อยอดจาก: Python Basics · Making decisions
  82. Grade letter ตัวสะกดเกรด 78 · งานที่ต้องทำ 1 รายการ · ★★
    ต่อยอดจาก: Python Basics · Making decisions
  83. Divisible by both หารด้วยสองจำนวนได้พอดี 79 · งานที่ต้องทำ 1 รายการ · ★★
    ต่อยอดจาก: Python Basics · Making decisions
  84. Ticket price 80 · งานที่ต้องทำ 1 รายการ · ★★
    ต่อยอดจาก: Python Basics · Making decisions
  85. Finish the countdown เสร็จสิ้นการนับถอยหลัง 81 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Counting loops
  86. The loop that never ends ลูปที่ไม่เคยจบ 82 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · While loops
  87. Count up to five นับขึ้นถึงห้า 83 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · While loops
  88. Add up to five บวกกันถึงห้า 84 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · While loops
  89. Double until it passes 100 คูณสองจนเกิน 100 85 · งานที่ต้องทำ 1 รายการ · ★★
    ต่อยอดจาก: Python Basics · While loops
  90. Stop at the first over fifty หยุดที่ค่าแรกที่เกิน 50 86 · งานที่ต้องทำ 1 รายการ · ★★
    ต่อยอดจาก: Python Basics · While loops
  91. Count down in twos นับถอยหลังแบบก้าวละสอง 87 · งานที่ต้องทำ 1 รายการ · ★★
    ต่อยอดจาก: Python Basics · While loops
  92. Until they type stop จนกว่าพวกเขาจะพิมพ์ stop 88 · งานที่ต้องทำ 1 รายการ · ★★
    ต่อยอดจาก: Python Basics · While loops
  93. How many halvings? แบ่งครึ่งกี่ครั้ง? 89 · งานที่ต้องทำ 1 รายการ · ★★
    ต่อยอดจาก: Python Basics · While loops
  94. A row of the times table ตารางคูณแถวหนึ่ง 90 · งานที่ต้องทำ 1 รายการ · ★★
    ต่อยอดจาก: Python Basics · While loops
  95. The first letter ตัวอักษรแรก 91 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Working with strings
  96. The last letter ตัวอักษรสุดท้าย 92 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Working with strings
  97. The first three letters สามตัวอักษรแรก 93 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Working with strings
  98. How long is it? ยาวเท่าไหร่? 94 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Working with strings
  99. Shout it โกร่งเสียง 95 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Working with strings
  100. Initials ตัวอักษรย่อ 96 · งานที่ต้องทำ 1 รายการ · ★★
    ต่อยอดจาก: Python Basics · Working with strings
  101. Ask for a name ขอชื่อ 97 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Getting input
  102. Ask for two things ขอสองอย่าง 98 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Getting input
  103. A number from input จำนวนจาก input 99 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Getting input
  104. Add two numbers you were given เพิ่มตัวเลขสองตัวที่คุณได้รับมา 100 · งานที่ต้องทำ 1 รายการ · ★★
    ต่อยอดจาก: Python Basics · Getting input
  105. Each letter on its own line แต่ละตัวอักษรอยู่ในบรรทัดของตัวเอง 101 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Counting loops
  106. Zero to four จากศูนย์ถึงสี่ 102 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Counting loops
  107. Count the letters นับตัวอักษร 103 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Counting loops
  108. Add up one to five บวกจากหนึ่งถึงห้า 104 · งานที่ต้องทำ 1 รายการ · ★
    ต่อยอดจาก: Python Basics · Counting loops

เข้าสู่ระบบหรือสร้างบัญชี

IGCSE, A-Level & AP