Ask for a name · ถามชื่อ
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() รอหนึ่งบรรทัดและส่งคืนเป็นข้อความ. เก็บในตัวแปรก่อน แล้วใช้ตัวแปรนั้น
Read a name with input() and print "Hello, " then the name. For the input Mia, print "Hello, Mia". · อ่านชื่อด้วย input() และพิมพ์ "Hello, " จากนั้นชื่อ. สำหรับ input Mia, พิมพ์ "Hello, Mia"
Click Run to see the output here. · คลิก Run เพื่อดูผลลัพธ์ที่นี่