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