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.

العربية

كم طولها؟

العبارة هي "Hello World". احفظ عدد أحرفها في n.

يعد len(...) كل حرف، بما في ذلك المسافة. هي دالة، لذا النص يوضع داخل أقواسها.

Log in or create account · ⁨تسجيل الدخول أو إنشاء حساب⁩

IGCSE, A-Level & AP