Echo a number · สะท้อนเลข
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · หน้านี้ต้องใช้เบราว์เซอร์ล่าสุด (รองรับ SharedArrayBuffer) กรุณาอัปเดต Chrome, Edge, Firefox หรือ Safari เป็นเวอร์ชันล่าสุด
This one builds on a lesson you haven't finished yet. Do that lesson first: · อันนี้สร้างจากบทเรียนที่คุณยังไม่เสร็จสิ้น ให้ทำบทเรียนนั้นก่อน:
Python Basics · Getting input · การรับข้อมูลเข้า →
English
Echo a number
Read a line with input() and print the same thing back.
When you press Run, type a number in the highlighted box and press Enter. Check answer types 42 for you.
ไทย
ส่องสะท้อนตัวเลข
อ่านบรรทัดด้วย input() แล้วพิมพ์สิ่งเดียวกันกลับออกมา
เมื่อคุณกด Run พิมพ์ตัวเลขในกล่องสีแล้วกด Enter. Check answer จะพิมพ์ 42 ให้คุณอัตโนมัติ
Read a line with input() and print it back. For 42, show 42. · อ่านบรรทัดด้วย input() และพิมพ์มันกลับมา สำหรับ 42 แสดง 42
Click Run to see the output here. · คลิก Run เพื่อดูผลลัพธ์ที่นี่