How long is it? · มีความยาวเท่าไร?
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 · Working with strings · การทำงานกับสตริง →
English
How long is it?
phrase is "Hello World". Store how many characters it has in n.
len(...) counts every character, including the space. It is a function, so the text goes inside its brackets.
ไทย
ยาวเท่าไหร่?
phrase คือ "Hello World". เก็บจำนวนตัวอักษรไว้ใน n
len(...) นับทุกตัวอักษร รวมถึงช่องว่าง. มันเป็นฟังก์ชัน, ดังนั้นข้อความเข้าไป ใน วงเล็บ
phrase is "Hello World". Store how many characters it has in n. · phrase คือ "Hello World". เก็บจำนวนตัวอักษรไว้ใน n
Click Run to see the output here. · คลิก Run เพื่อดูผลลัพธ์ที่นี่