

ตัวแปรpython
Presentation
•
Computers
•
6th - 8th Grade
•
Practice Problem
•
Hard
ธเนศ พะโน
FREE Resource
4 Slides • 1 Question
1
2
ตัวแปร (Variable) คือชื่อหรือเครื่องหมายที่กำหนดขึ้นสำหรับใช้อ้างถึงค่าที่เก็บในหน่วยความจำ
ปัจจุบันหลักการและแนวคิดการพัฒนาการเขียนโปรแกรม หรือภาษาที่ใช้ในการเขียนโปรแกรม มีขีดความสามารถรองรับการเขียนโปรแกรมในรูปแบบทั่วไป และ Object Base เชิงวัตถุ (Object Oriented) ดังนั้นการเลือกตัวแปรสำหรับใช้งานร่วมกับกลุ่มคำสั่ง จึงต้องกำหนดให้เหมาะสมและถูกต้อง สำหรับตัวแปรของภาษาแบ่งออกเป็น 2 กลุ่มใหญ่ดังนี้
กลุ่มที่ 1 ตัวแปรชนิดทั่วไป ได้แก่ ตัวเลข (Number), ข้อความ (String), วันที่ เวลา (Date Time), เลขทศนิยมหรือชนิดที่เป็น Sequence (คล้ายตัวแปร Array ในภาษาอื่น) เป็นต้น
กลุ่มที่ 2 ตัวแปรชนิด Object เช่น คำสั่ง Object เกี่ยวกับไฟล์ (File) หรือไดเรกทอรี (Dir), คำสั่ง object connect สำหรับการเชื่อมต่อฐานข้อมูล ฯลฯ
3
4
5
Fill in the Blanks
จงตั้งชื่อตัวแปร X มีค่าเท่ากับ 3
Show answer
Auto Play
Slide 1 / 5
SLIDE
Similar Resources on Wayground
7 questions
ไตรภูมิพระร่วง
Presentation
•
6th Grade
7 questions
Time of day
Presentation
•
6th Grade
5 questions
ข้อมูล และ สารสนเทศ
Presentation
•
6th - 8th Grade
1 questions
ขั้นตอนการสร้าง Animation Ai
Presentation
•
8th Grade
8 questions
ระบบนิเวศ
Presentation
•
6th - 8th Grade
8 questions
พัฒนาการเอเชียตะวันออกเฉียงใต้
Presentation
•
7th Grade
9 questions
บทเรียนe-Learning
Presentation
•
KG
8 questions
การงานอาชีพ อาหารและโภชนาการ
Presentation
•
5th - 7th Grade
Popular Resources on Wayground
10 questions
Safety Day 2026 – Student Review
Quiz
•
9th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
12 questions
Map Skills
Quiz
•
3rd Grade
22 questions
Continents and Oceans
Quiz
•
5th Grade
15 questions
Rounding Decimals
Quiz
•
5th Grade