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 · ⁨IGCSE、A-Level⁩ & AP · ⁨与 AP⁩