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

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

English

Ask for a name

Read a name with input() and print "Hello, " then the name. For the input Mia, print "Hello, Mia".

input() waits for one line and hands it back as text. Store it in a variable first, then use that variable.

ไทย

ขอชื่อ

อ่านชื่อด้วย input() และพิมพ์ "Hello, " จากนั้นชื่อ. สำหรับ input Mia, พิมพ์ "Hello, Mia"

input() รอหนึ่งบรรทัดและส่งคืนเป็นข้อความ. เก็บในตัวแปรก่อน แล้วใช้ตัวแปรนั้น

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

IGCSE, A-Level & AP