Skip to content

Ask for a name · ⁨询问名字⁩

English

Ask for a name

input() reads one line that the user types. Store it in a box, then use it.

When you press Run, the program waits: a highlighted box appears under the code. Type a name there and press Enter. Check answer types Sam for you.

中文

询问名字

input() 读取用户输入的一行。把它存进盒子,然后使用它。

按运行后,程序会等你:代码下面会出现一个高亮的方框。在那里输入一个名字,再按回车键。按检查答案时,会替你输入 Sam。

Log in or create account · ⁨登录或创建账户⁩

IGCSE, A-Level · ⁨IGCSE、A-Level⁩ & AP · ⁨与 AP⁩