Programming การเขียนโปรแกรม

From bits to working Python programs you can run in the browser จากบิตสู่โปรแกรม Python ที่รันได้ในเบราว์เซอร์

Overview ภาพรวม

Programming turns an idea into instructions that a computer can follow. This section starts from how a computer stores information and ends with real Python programs that you can run in the browser, so every example shows its result at once.

การเขียนโปรแกรมคือการเปลี่ยนความคิดให้เป็นคำสั่งที่คอมพิวเตอร์ทำตามได้ หมวดนี้เริ่มจากวิธีที่คอมพิวเตอร์เก็บข้อมูล ไปจนถึงโปรแกรม Python จริงที่รันในเบราว์เซอร์ได้ ทุกตัวอย่างจึงเห็นผลลัพธ์ทันที

How to use the lessons วิธีใช้บทเรียน

  1. Open a section from the list below (or the sidebar menu), then open its lessons one by one.
  2. Read the explanation and try the examples: in Python lessons every example has a Run button and an editable code box.
  3. Finish each lesson with its quiz to check your understanding.
  1. เปิดหมวดจากรายการด้านล่าง (หรือเมนูด้านข้าง) แล้วเปิดบทเรียนทีละบท
  2. อ่านคำอธิบายและลองตัวอย่าง ในบท Python ทุกตัวอย่างมีปุ่ม Run และกล่องโค้ดที่แก้ไขได้
  3. จบแต่ละบทด้วยแบบทดสอบเพื่อตรวจความเข้าใจ

Who it is for เหมาะกับใคร

Beginners: students in a first computing or programming course, engineers and scientists who want to automate measurements and calculations, and anyone curious about how software works. No earlier coding experience is needed.

ผู้เริ่มต้น ได้แก่ นักศึกษาที่เรียนวิชาคอมพิวเตอร์หรือการเขียนโปรแกรมเป็นครั้งแรก วิศวกรและนักวิทยาศาสตร์ที่อยากให้การวัด และการคำนวณทำงานอัตโนมัติ และผู้ที่สงสัยว่าซอฟต์แวร์ทำงานอย่างไร ไม่ต้องมีประสบการณ์เขียนโค้ดมาก่อน

Learning order ลำดับการเรียนรู้

  1. 01 Basic — how a computer stores and processes data, and how to plan logic
  2. 02 Python — the Python language, step by step, with runnable examples
  1. 01 Basic — คอมพิวเตอร์เก็บและประมวลผลข้อมูลอย่างไร และวางแผน logic อย่างไร
  2. 02 Python — ภาษา Python ทีละขั้น พร้อมตัวอย่างที่รันได้

What this section covers เนื้อหาในหมวดนี้

01 Basic covers bits, number systems, negative numbers, binary arithmetic, ASCII and flowcharts. 02 Python teaches the language from print() and variables to strings, lists, dictionaries, decisions, loops and files, and ends with worked example programs.

01 Basic ครอบคลุมบิต ระบบเลขฐาน จำนวนลบ เลขคณิตฐานสอง ASCII และ flowchart 02 Python สอนภาษาตั้งแต่ print() และตัวแปร ไปจนถึงสตริง list dictionary การตัดสินใจ การวนซ้ำ และไฟล์ แล้วปิดท้ายด้วยโปรแกรมตัวอย่างพร้อมโจทย์