Remember, an output command in Python is very easy. Typing print) is enough. It prints any text inside the brackets. Also the text has to be in double quotes around. Otherwise, the program will give you an error., The next code segment does not have quotes around. Therefore, Python understands it as a mathematical statement. It will print 5 nowx Syntax means correctness of computer speech.Syntax means correctness of computer speech., The code segment on the right is an example of error cases. The computer tries to understand "Hello World" as a mathematical statement, and this does not work:, A print statement can output several words or numbers at once. We can separate each item by a comma:Syntax means correctness of computer speech., Python sees everything inside the quotes as text. Anything outside the quotes is a mathematical statement or a computer code:, The next code example does not work. This is because there is no separating comma between the text in quotes and numbers (1030+10):, The separating comma must be outside the quotes., print comma quotes ' ".
0%
Untitle
แชร์
แชร์
แชร์
โดย
Forknifexperien
8 кл.
แก้ไขเนื้อหา
สั่งพิมพ์
ฝัง
เพิ่มเติม
กำหนด
ลีดเดอร์บอร์ด
แสดงเพิ่มขึ้น
แสดงน้อยลง
ลีดเดอร์บอร์ดนี้ตอนนี้เป็นส่วนตัว คลิก
แชร์
เพื่อทำให้เป็นสาธารณะ
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานโดยเจ้าของทรัพยากร
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานเนื่องจากตัวเลือกของคุณแตกต่างสำหรับเจ้าของทรัพยากร
แปลงกลับตัวเลือก
คู่ที่ตรงกัน
เป็นแม่แบบแบบเปิดที่ไม่ได้สร้างคะแนนสำหรับลีดเดอร์บอร์ด
ต้องลงชื่อเข้าใช้
สไตล์ภาพ
แบบ อักษร
ต้องสมัครสมาชิก
ตัวเลือก
สลับแม่แบบ
แสดงทั้งหมด
รูปแบบเพิ่มเติมจะปรากฏเมื่อคุณเล่นกิจกรรม
)
เปิดผลลัพธ์
คัดลอกลิงค์
คิวอาร์โค้ด
ลบ
คืนค่าการบันทึกอัตโนมัติ:
ใช่ไหม