NỘI DUNG TÓM TẮT
คำ สั่ง For
คำสั่ง for เป็นหนึ่งในคำสั่งสำคัญในภาษาไพทอนที่ใช้ในการทำงานกับลูป (loop) ซึ่งช่วยให้เราสามารถทำซ้ำรหัสที่เราต้องการจนกว่าเงื่อนไขจะเป็นเท็จได้โดยง่ายและกระทำเหล่านี้ในรอบ (iteration) ที่กำหนดไว้ล่วงหน้า
วิธีการสร้างลูปในภาษาไพทอนด้วยคำสั่ง for
เราสามารถใช้คำสั่ง for ในภาษาไพทอนในการสร้างลูปโดยที่เราต้องระบุสิ่งที่เรียกว่าตัวแปรการทำซ้ำ (iteration variable) และชุดข้อมูลที่เราต้องการทำซ้ำข้างในลูป
ตัวอย่างการใช้งานคำสั่ง for ในการทำงานกับลิสต์ (list) ในภาษาไพทอน:
“`python
fruits = [‘apple’, ‘banana’, ‘orange’]
for fruit in fruits:
print(fruit)
“`
ผลลัพธ์ที่ได้จากตัวอย่างนี้คือการพิมพ์ผลลัพธ์ทุกครั้งที่ลูปทำงานจนกว่าจะถึงสมาชิกสุดท้ายในลิสต์ fruits:
“`
apple
banana
orange
“`
การใช้คำสั่ง for ในการทำงานกับ tuple ในภาษาไพทอน
เราสามารถใช้คำสั่ง for ในการทำงานกับ tuple ในภาษาไพทอนได้โดยการระบุตัวแปรในลูปและชุดข้อมูลที่เป็น tuple ที่เราต้องการทำซ้ำ
ตัวอย่างการใช้งานคำสั่ง for ในการทำงานกับ tuple ในภาษาไพทอน:
“`python
numbers = (1, 2, 3, 4, 5)
sum = 0
for number in numbers:
sum += number
print(sum)
“`
ผลลัพธ์ที่ได้จากตัวอย่างนี้คือผลรวมของตัวเลขทั้งหมดใน tuple numbers ซึ่งคือ 15
การใช้คำสั่ง for ในการทำงานกับเซต (set) ในภาษาไพทอน
เราสามารถใช้คำสั่ง for ในการทำงานกับเซต (set) ในภาษาไพทอนได้โดยการระบุตัวแปรในลูปและชุดข้อมูลที่เป็นเซตที่เราต้องการทำซ้ำ
ตัวอย่างการใช้งานคำสั่ง for ในการทำงานกับเซตในภาษาไพทอน:
“`python
fruits = {‘apple’, ‘banana’, ‘orange’}
for fruit in fruits:
print(fruit)
“`
ผลลัพธ์ที่ได้จากตัวอย่างนี้เป็นการพิมพ์รายชื่อผลไม้ทุกชนิดในเซต fruits:
“`
apple
banana
orange
“`
การใช้คำสั่ง for ในการทำงานกับพจนานุกรม (dictionary) ในภาษาไพทอน
เราสามารถใช้คำสั่ง for ในการทำงานกับพจนานุกรม (dictionary) ในภาษาไพทอนได้โดยการระบุตัวแปรในลูปและพจนานุกรมที่เราต้องการทำซ้ำ
ตัวอย่างการใช้งานคำสั่ง for ในการทำงานกับพจนานุกรมในภาษาไพทอน:
“`python
fruits = {‘apple’: 1, ‘banana’: 2, ‘orange’: 3}
for fruit, quantity in fruits.items():
print(fruit, quantity)
“`
ผลลัพธ์ที่ได้จากตัวอย่างนี้คือการพิมพ์ผลลัพธ์ทุกครั้งที่ลูปทำงานจนกว่าจะถึงคีย์และค่าในพจนานุกรม fruits:
“`
apple 1
banana 2
orange 3
“`
วิธีการใช้งานคำสั่ง break และ continue ร่วมกับคำสั่ง for-loop
คำสั่ง break ใช้ในการหยุดการทำงานของลูปทันทีเมื่อเงื่อนไขที่กำหนดเป็นจริง ส่วนคำสั่ง continue ใช้ในการข้ามการทำงานของลูปในรอบปัจจุบันเมื่อเงื่อนไขที่กำหนดเป็นจริงและทำการทำซ้ำในรอบถัดไป
ตัวอย่างการใช้งานคำสั่ง break และ continue ในคำสั่ง for ในภาษาไพทอน:
“`python
fruits = [‘apple’, ‘banana’, ‘orange’]
for fruit in fruits:
if fruit == ‘banana’:
break
print(fruit)
“`
ผลลัพธ์ที่ได้จากตัวอย่างนี้คือการพิมพ์ผลลัพธ์เป็น ‘apple’ และหยุดทำงานเมื่อ fruit เป็น ‘banana’
“`python
fruits = [‘apple’, ‘banana’, ‘orange’]
for fruit in fruits:
if fruit == ‘banana’:
continue
print(fruit)
“`
ผลลัพธ์ที่ได้จากตัวอย่างนี้คือการพิมพ์ผลลัพธ์เป็น ‘apple’ และ ‘orange’ โดยข้ามไปเมื่อ fruit เป็น ‘banana’
FAQs ตัวอย่างคำสั่ง for, คำสั่ง while, ตัวอย่างคำสั่ง for c++, คำสั่ง for สูตรคูณ, คำสั่ง do while, คำสั่ง for สูตรคูณ php, คำสั่ง while สูตรคูณ, for loop คืออะไรคำสั่ง for:
1. ตัวอย่างของคำสั่ง for ในภาษาไพทอนคืออะไร?
– ตัวอย่างของคำสั่ง for ในภาษาไพทอนคือการพิมพ์รายการสินค้าทั้งหมดในรายการสินค้า
2. คำสั่ง while ใช้ทำอะไรได้บ้าง?
– คำสั่ง while ใช้ในการทำซ้ำรหัสที่กำหนดไว้ในลูปในขณะที่เงื่อนไขเป็นจริง
3. ให้ตัวอย่างของคำสั่ง for ในภาษา C++?
– ตัวอย่างของคำสั่ง for ในภาษา C++ คือการพิมพ์ตัวเลขจาก 1 ถึง 10
4. คำสั่ง for สูตรคูณใช้ในการทำอะไร?
– คำสั่ง for สูตรคูณใช้ในการพิมพ์ตารางสูตรคูณที่ระบุ
5. คำสั่ง do while ใช้ทำอะไรได้บ้าง?
– คำสั่ง do while ใช้ในการทำซ้ำรหัสที่กำหนดไว้ในลูปในขณะที่เงื่อนไขเป็นจริงและทำการทำซ้ำอย่างน้อยหนึ่งครั้ง
6. คำสั่ง for สูตรคูณในภาษา PHP คืออะไร?
– คำสั่ง for สูตรคูณในภาษา PHP ใช้ในการพิมพ์ตารางสูตรคูณที่ระบุ
7. คำสั่ง while สูตรคูณใช้ทำอะไรได้บ้าง?
– คำสั่ง while สูตรคูณใช้ในการพิมพ์ตารางสูตรคูณที่ระบุอย่างต่อเนื่อง
8. for loop คืออะไรคำสั่ง for?
– for loop เป็นลูปที่ใช้ในภาษาโปรแกรมหลาย ๆ ภาษาเช่น C, C++, Java, Python เป็นต้น โดยสามารถทำงานซ้ำกับชุดข้อมูลที่กำหนดได้
ใช้งานคำสั่ง for ในภาษาไพทอนจะช่วยให้เราสามารถทำซ้ำการกระทำต่าง ๆ โดยง่ายและสะดวกสบาย เช่น กรณีที่ต้องการพิมพ์ผลลัพธ์ทุกครั้งที่ลูปทำงาน หรือรวมผลรวมของตัวเลขทั้งหมดในลิสต์ นอกจากนี้ยังสามารถใช้คำสั่ง break เพื่อหยุดการทำงานของลูปทันทีเมื่อเงื่อนไขที่กำหนดเป็นจริง หรือใช้คำสั่ง continue เพื่อข้ามการทำงานในรอบปัจจุบันเมื่อเงื่อนไขที่กำหนดเป็นจริงและทำการทำซ้ำในรอบถัดไป
สอนภาษาซี C: การใช้คำสั่ง For Loop เพื่อทำงานซ้ำ (ตอนที่ 1)
คำสำคัญที่ผู้ใช้ค้นหา: คำ สั่ง for ตัวอย่างคำสั่ง for, คําสั่ง while, ตัวอย่างคำสั่ง for c++, คํา สั่ง for สูตรคูณ, คําสั่ง do while, คําสั่ง for สูตรคูณ php, คํา สั่ง while สูตรคูณ, for loop คืออะไร
รูปภาพที่เกี่ยวข้องกับหัวข้อ คำ สั่ง for

หมวดหมู่: Top 36 คำ สั่ง For
ดูเพิ่มเติมที่นี่: themtraicay.com
ตัวอย่างคำสั่ง For
ในการเขียนโปรแกรมอย่างไรก็ตาม คำสั่ง for เป็นคำสั่งที่จำเป็นและมีประโยชน์อย่างมากในการทำซ้ำกันของข้อมูลหรือการประมวลผลที่ซ้ำเป็นจำนวนหนึ่ง
ในภาษาไทย คำสั่ง for นั้นใช้สำหรับการวนลูปหรือทำซ้ำบางอย่างในรูปแบบเฉพาะ โดยกำหนดส่วนต่าง ๆ ของคำสั่ง for ดังนี้:
for ตัวแปร in ชุดข้อมูล:
คำสั่งที่จะทำซ้ำ
– ตัวแปร: ตัวแปรที่ใช้ในการเก็บค่าจากชุดข้อมูลในแต่ละรอบของการทำซ้ำ
– ชุดข้อมูล: ชุดข้อมูลที่ต้องการนำมาทำซ้ำ เช่น รายการของตัวเลข ชุดข้อมูลในรูปแบบของ list หรือ tuple
– คำสั่งที่จะทำซ้ำ: คำสั่งหรือบล็อคของโค้ดที่ต้องการให้ทำซ้ำจนกว่าจะเสร็จสิ้น
ตัวอย่างการใช้งานคำสั่ง for:
ตัวอย่างที่ 1: พิมพ์สมาชิกในรายการ
“`
names = [“John”, “Mike”, “Anna”, “Emily”]
for name in names:
print(name)
“`
Output:
“`
John
Mike
Anna
Emily
“`
ตัวอย่างที่ 2: คำนวณผลรวมของตัวเลขในรายการ
“`
numbers = [1, 2, 3, 4, 5]
sum = 0
for num in numbers:
sum += num
print(sum)
“`
Output:
“`
15
“`
ตัวอย่างที่ 3: แสดงค่าตัวเลขที่น้อยกว่า 5 ในรายการ
“`
numbers = [1, 2, 3, 4, 5]
for num in numbers:
if num < 5:
print(num)
```
Output:
```
1
2
3
4
```
FAQs เกี่ยวกับตัวอย่างคำสั่ง for:
คำถาม 1: ต้องใช้ตัวแปรอะไรบ้างในคำสั่ง for?
ตอบ: คุณสามารถใช้ตัวแปรใด ๆ ที่คุณต้องการในการเก็บค่าจากชุดข้อมูล อย่างไรก็ตาม ควรให้ชื่อตัวแปรมีความหมายและใช้งานง่ายต่อการอ่านโค้ด
คำถาม 2: ได้รับชุดข้อมูลอะไรได้บ้างในการใช้คำสั่ง for?
ตอบ: คุณสามารถใช้คำสั่ง for กับชนิดของข้อมูลที่เป็นการสร้างซ้ำได้ เช่น รายการ (list) หรือ สายอักขระ (string)
คำถาม 3: คำสั่งที่จะทำซ้ำอาจมีลักษณะอย่างไร?
ตอบ: คำสั่งที่จะทำซ้ำสามารถเป็นคำสั่งเดียวหรือบล็อคของโค้ดที่มีคำสั่งหลาย ๆ บรรทัดได้ ตัวอย่างเช่นการพิมพ์สมาชิกในรายการ การทำการคำนวณ หรือการทำสิ่งใด ๆ ขึ้นอยู่กับความต้องการของโปรแกรมของคุณ
คำถาม 4: ต้นทางสิ้นสุดของการทำซ้ำคืออะไร?
ตอบ: ตัวแปรที่ใช้ในคำสั่ง for จะมีค่าดังตามลำดับของชุดข้อมูล ถ้าชุดข้อมูลเป็นรายการที่มี n สมาชิก การทำซ้ำจะสิ้นสุดในรอบที่ n
คำสั่ง for ในภาษาไทยเป็นเครื่องมือที่มีประโยชน์สำหรับการทำซ้ำของโค้ดในรูปแบบที่มีความเป็นระเบียบและใช้งานง่าย ทำให้เขียนโปรแกรมได้อย่างมีประสิทธิภาพและสร้างโค้ดในลักษณะที่มั่นใจได้ว่าจะทำงานอย่างถูกต้อง หากคุณกำลังเรียนรู้การเขียนโปรแกรม คำสั่ง for เป็นสิ่งที่คุณควรที่จะศึกษาและเข้าใจเพื่อสร้างการทำงานที่มีประสิทธิภาพ
คําสั่ง While
Introduction
In the Thai language, คําสั่ง (pronounced “kam-sang”) refers to commands or imperatives. Commands are indispensable for effective communication as they allow individuals to convey instructions, requests, suggestions, or even express emotions in a direct and concise manner. Understanding how to use คําสั่ง is essential in daily life, whether you are interacting with locals, navigating public spaces, or immersing yourself in Thai culture. This article aims to provide you with an in-depth understanding of คําสั่ง, its structure, usage, and common variations, ensuring your Thai language skills are well-equipped.
I. Structure of คําสั่ง
1. Verb Conjugation
In Thai, the structure of a command typically mirrors that of a simple affirmative or positive statement. To form a command, conjugate the verb into the imperative mood by removing the subject pronoun and using the plain form of the verb. For example:
– กลับบ้าน (glap ban) – Go home.
– รอนี่นานไป (ro ni nan pai) – Wait here (for) a long time.
Note: It’s essential to omit the subject pronoun, as it is implied through the context or the relationship between the speaker and listener. Additionally, dropping the subject pronoun adds a sense of familiarity and informality to the command.
2. Particle Usage
Particles play a crucial role in Thai commands, as they help convey various nuances and emotions. Here are some common particles used in คําสั่ง:
– ดิ่ง (ding): Used to express urgency or imply a quick action. For example, เดินดิ่ง (doen ding) – Walk quickly.
– ซิ (si): Adds emphasis or a sense of sternness to the command. For example, พูดซิ (phut si) – Speak up!
– ก่อน (gon): Indicates the urgency or necessity of completing the command before doing something else. For example, ล้างจานก่อน (lang jan gon) – Wash the dishes first.
II. Usage of คําสั่ง
1. Requesting Actions
คําสั่ง is widely used to request actions from others. It helps ensure effective communication, especially in situations like asking for directions or ordering food. Some examples of requesting actions include:
– ช่วยฉันหน่อย (chuay chan noi) – Help me, please.
– ส่งอีเมล์ให้ฉัน (song email hai chan) – Send me an email, please.
– เอาด้านซ้าย (ao dan sai) – Take the left side.
2. Prohibitions
คําสั่ง is also used to convey prohibitions or restrictions. It clearly communicates what actions are not allowed, promoting social order and appropriate behavior. For instance:
– อย่าถือโทรศัพท์ในห้องสอบ (ya teu torasap nai hong sohp) – Do not hold phones in the exam room.
– ห้ามสูบบุหรี่ในบริเวณนี้ (ham sup buri nai biriwanní) – Smoking is prohibited in this area.
III. Common Variations
1. Polite Commands
In formal or polite situations, it is important to use polite commands to show respect towards others. Polite commands are formed by adding specific polite particles, such as ครับ (khrap) for males or ค่ะ (kha) for females, at the end of the imperative sentence. Here are a few examples:
– มาที่นี่หน่อยครับ (ma ti ni noi khrap) – Come here, please (polite form male).
– รับประทานอาหารที่นี่ค่ะ (rap prathan aharn ti ni kha) – Have your meal here, please (polite form female).
2. Soft Commands
Soft commands, also known as gentle commands, are used to express requests or suggestions in a more polite or indirect manner. They are often employed to avoid sounding too forceful or demanding. Here are some examples of soft commands:
– คุณอยากเข้ามา matk itla…? (kun yak kao ma-akitä…) – Would you mind coming in a bit?
– คุณสามารถช่วยกันได้มั้ย? (kun samat chuaykan dai-mai?) – Could you help each other, please?
IV. FAQs
1. Can I use commands to people older or in higher social positions?
It is advisable to use polite or formal commands when communicating with people who are older or hold higher social positions than you. Respectful language and tone should always be employed in such situations.
2. Are there any nonverbal elements to consider while giving commands in Thai?
Yes, in Thai culture, nonverbal cues are important in communicating commands. Eye contact, facial expressions, and hand gestures can enhance the effectiveness of your commands or convey emotions such as urgency, excitement, or displeasure.
3. Are there any situations where I should avoid using คําสั่ง?
It is important to use คําสั่ง judiciously and considerately. Avoid using commanding language in formal or sensitive conversations, such as when talking to authority figures, elders, or in highly respectful contexts.
Conclusion
คําสั่ง plays a pivotal role in Thai communication, allowing for efficient and straightforward instructions. Understanding the structure, usage, and variations of commands in the Thai language empowers you to navigate daily interactions and engage effectively with locals. By incorporating appropriate particles and employing soft or polite commands when needed, you will enhance your Thai language skills and foster positive communication experiences.
ตัวอย่างคำสั่ง For C++
ภาษา C++ เป็นภาษาโปรแกรมที่ถูกใช้กันอย่างแพร่หลายในวงการพัฒนาซอฟต์แวร์ ความสามารถในการเขียนโปรแกรมที่ยืดหยุ่นและมีประสิทธิภาพสูงเป็นปัจจัยสำคัญที่ทำให้ C++ เป็นผู้สืบทอดจาก C และเพิ่มความสามารถเพิ่มขึ้นอีกด้วย
ในบทความนี้เราจะช่วยให้คุณเข้าใจเกี่ยวกับตัวอย่างคำสั่งในภาษา C++ รวมถึงคำแนะนำในการใช้และคำถามที่พบบ่อย
ตัวอย่างคำสั่ง C++ เบื้องต้น
คำสั่งในภาษา C++ สามารถแบ่งออกเป็นหลายประเภท เช่น คำสั่งการควบคุม (Control statements) เช่น if-else, for loop, while loop, คำสั่งเชื่อมโยง (Linking statements) เช่น function calls, คำสั่งการประกาศ (Declaration statements) เช่น variable declaration, และอื่น ๆ
นี่คือตัวอย่างโค้ด C++ ธรรมดาที่ใช้ตัวอย่างคำสั่งต่าง ๆ:
“`
#include
int main() {
int number = 5;
if (number > 0) {
std::cout << "The number is positive." << std::endl;
} else if (number < 0) {
std::cout << "The number is negative." << std::endl;
} else {
std::cout << "The number is zero." << std::endl;
}
for (int i = 0; i < 5; i++) {
std::cout << "i = " << i << std::endl;
}
int counter = 10;
while (counter > 0) {
std::cout << "Counter value: " << counter << std::endl;
counter--;
}
return 0;
}
```
ในตัวอย่างนี้เรามีการใช้คำสั่ง if-else เพื่อตรวจสอบค่าของตัวเลขและแสดงผลลัพธ์ที่เหมาะสม คำสั่ง for loop ใช้สำหรับการทำซ้ำที่สามารถกำหนดเงื่อนไขการทำซ้ำได้ และคำสั่ง while loop ใช้สำหรับการทำซ้ำตามเงื่อนไข
ตัวอย่างคำสั่งเชื่อมโยงในภาษา C++
คำสั่งการเชื่อมโยงในภาษา C++ มีหน้าที่เชื่อมโยงเมื่อต้องการใช้งานฟังก์ชันที่ถูกตั้งชื่อไว้ล่วงหน้าหรือวัตถุที่มีคลาสที่ถูกสร้างขึ้น คำสั่งการเชื่อมโยงในภาษา C++ สามารถใช้งานได้หลายรูปแบบ ซึ่งจะศึกษาตัวอย่างการเชื่อมโยงสองรูปแบบที่พบบ่อยได้ดังนี้:
1. การเชื่อมโยงภายใน:
```
void displayMessage() {
std::cout << "Hello, world!" << std::endl;
}
int main() {
displayMessage();
return 0;
}
```
ในตัวอย่างนี้ เราสร้างฟังก์ชัน `displayMessage()` ภายในฟังก์ชัน `main()` และวิธีการเรียกใช้งานฟังก์ชันโดยตรงได้
2. การเชื่อมโยงภายนอก:
```
//math.h
int add(int a, int b) {
return a + b;
}
//main.cpp
#include
extern int add(int a, int b);
int main() {
int sum = add(5, 10);
std::cout << "Sum: " << sum << std::endl;
return 0;
}
```
ในตัวอย่างนี้ เรากำหนดฟังก์ชัน `add()` ในไฟล์ `math.h` และเรียกใช้งานฟังก์ชันด้วยคำสั่ง `extern` ในไฟล์ `main.cpp`
ตัวอย่างการประกาศในภาษา C++
การประกาศในภาษา C++ ใช้สำหรับการสร้างตัวแปรและอ็อบเจ็กต์พร้อมกับการกำหนดประเภทข้อมูลและชื่อ นี่คือตัวอย่างการประกาศตัวแปรแบบต่าง ๆ ใน C++:
1. ประกาศตัวแปรแบบข้อมูลเลขจำนวนเต็ม:
```
int number = 10;
```
2. ประกาศตัวแปรแบบอักขระ:
```
char letter = 'A';
```
3. ประกาศตัวแปรแบบสตริง:
```
std::string name = "John Doe";
```
4. ประกาศค่าคงที่:
```
const double PI = 3.14159;
```
คำถามที่พบบ่อย
1. C++ เหมาะสำหรับใคร?
C++ เหมาะสำหรับนักพัฒนาซอฟต์แวร์ที่ต้องการความสามารถในการควบคุมและปรับแต่งการทำงานของระบบ รวมถึงการจัดการทรัพยากรระบบหรืออนุกรมอื่น ๆ
2. C++ สามารถใช้สร้างแอปพลิเคชันได้ในระดับใด?
C++ สามารถใช้สร้างแอปพลิเคชันที่มีความซับซ้อนสูงและมีประสิทธิภาพสูงได้ เช่น โปรแกรมสำหรับระบบปฏิบัติการหรือเกมคอมพิวเตอร์
3. มีเครื่องมือใดที่ใช้ช่วยเขียนและคอมไพล์โปรแกรม C++ ได้บ้าง?
มีเครื่องมือหลายตัวที่ใช้ในการเขียนและคอมไพล์โปรแกรม C++ ได้ เช่น Microsoft Visual Studio, GCC (GNU Compiler Collection), Clang, และอื่น ๆ
4. C++ แตกต่างจากภาษาโปรแกรมอื่น ๆ อย่างไร?
C++ เป็นภาษาที่ถูกพัฒนามาอย่างยาวนานและมีความยืดหยุ่นสูง โดยสามารถรองรับการเขียนโปรแกรมในลักษณะที่หลากหลาย นอกจากนี้ C++ ยังมีความสามารถในการจัดการหน่วยความจำและการควบคุมสายบันทึกได้อีกด้วย
หวังว่าบทความนี้จะช่วยเพิ่มความเข้าใจและความรู้ของคุณเกี่ยวกับตัวอย่างคำสั่งสำหรับภาษา C++ และช่วยให้คุณรู้จักกับวิธีการใช้งานคำสั่งหลัก นอกเหนือจากนี้ยังมีคำถามที่พบบ่อยเกี่ยวกับ C++ ที่อาจมีอยู่ เพื่อให้รู้จักกับภาษาและเพิ่มประสบการณ์ในการเขียนโปรแกรม C++
พบ 33 ภาพที่เกี่ยวข้องกับหัวข้อ คำ สั่ง for.


















































ลิงค์บทความ: คำ สั่ง for.
ดูข้อมูลเพิ่มเติมเกี่ยวกับโพสต์หัวข้อนี้ คำ สั่ง for.
- การวนรอบซ้ำด้วยคำสั่ง for – C Language Programing
- คำสั่งวนซ้ำ for loop ในภาษา C – MarcusCode
- การใช้คำสั่ง for loop
- คำสั่ง for – บทเรียนออนไลน์ การเขียนโปรแกรมด้วยภาษาซี
- หน่วยที่ 6 การวนรอบ และหยุดการทำงานของโปรแกรม
- การใช้งานคำสั่ง for Loop C++ – สอนเขียนโปรแกรม C++
- 9. คำสั่งทำซ้ำ for — Python documentation
- คำสั่ง while, do-while และ for – ครูไอที
- 4.1 การเขียนโปรแกรมทำซ้ำ ด้วย for – kruareerat
ดูเพิ่มเติม: themtraicay.com/category/facts-first