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

How long is it? · ⁨มีความยาวเท่าไร?⁩

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(...) นับทุกตัวอักษร รวมถึงช่องว่าง. มันเป็นฟังก์ชัน, ดังนั้นข้อความเข้าไป ใน วงเล็บ

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

IGCSE, A-Level & AP