Skip to content · ⁨ข้ามไปยังเนื้อหา⁩

Ask for a name · ⁨ถามชื่อ⁩

English

Ask for a name

input() reads one line that the user types. Store it in a box, then use it.

When you press Run, the program waits: a highlighted box appears under the code. Type a name there and press Enter. Check answer types Sam for you.

ไทย

ขอชื่อ

input() อ่านบรรทัดที่ผู้ใช้พิมพ์มา เก็บไว้ในกล่อง แล้วนำไปใช้

เมื่อคุณกด Run โปรแกรมจะรอ: จะปรากฏกล่องสีอยู่ใต้โค้ด พิมพ์ชื่อลงไปในนั้นแล้วกด Enter. Check answer จะพิมพ์ Sam ให้คุณอัตโนมัติ

Log in or create account · ⁨เข้าสู่ระบบหรือสร้างบัญชี⁩

IGCSE, A-Level & AP