Integer, The int data type represents whole numbers, both positive and negative, without any decimal point. For example, 1, -5, and 1000 are integers, Real, The float data type represents real numbers with a decimal point. It can store both integer and fractional parts. For example, 3.14, -0.5, and 2.0 are floats., String, The str data type represents a sequence of characters. Strings are used for representing text and are enclosed in single, double, or triple quotes. For example, "Hello, World!" is a string., Boolean, The bool data type represents binary values, typically denoting either True or False. Booleans are used for logical operations and conditional expressions., Char, Unlike some other programming languages, Python does not have a separate char data type. In Python, individual characters are represented as strings containing a single character. For example, 'A' or '7' are single-character strings..
0%
S3 Python - Data Types
แชร์
แชร์
แชร์
โดย
Mrscalderwood
Secondary
Computing
Programming Fundamentals
แก้ไขเนื้อหา
สั่งพิมพ์
ฝัง
เพิ่มเติม
กำหนด
ลีดเดอร์บอร์ด
แสดงเพิ่มขึ้น
แสดงน้อยลง
ลีดเดอร์บอร์ดนี้ตอนนี้เป็นส่วนตัว คลิก
แชร์
เพื่อทำให้เป็นสาธารณะ
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานโดยเจ้าของทรัพยากร
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานเนื่องจากตัวเลือกของคุณแตกต่างสำหรับเจ้าของทรัพยากร
แปลงกลับตัวเลือก
จับคู่
เป็นแม่แบบแบบเปิดที่ไม่ได้สร้างคะแนนสำหรับลีดเดอร์บอร์ด
ต้องลงชื่อเข้าใช้
สไตล์ภาพ
แบบ อักษร
ต้องสมัครสมาชิก
ตัวเลือก
สลับแม่แบบ
แสดงทั้งหมด
รูปแบบเพิ่มเติมจะปรากฏเมื่อคุณเล่นกิจกรรม
)
เปิดผลลัพธ์
คัดลอกลิงค์
คิวอาร์โค้ด
ลบ
คืนค่าการบันทึกอัตโนมัติ:
ใช่ไหม