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 · Python 基础 · 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. · 点击“运行”查看此处输出。