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() は、ユーザーが入力した1行のテキストを読み取ります。それを箱に格納し、その後使用します。

実行を押すと、プログラムは待機します: コードの下にハイライトされた箱が表示されます。そこに名前を入力してEnterキーを押します。回答を確認では Sam が自動で入力されます。

Log in or create account · ⁨ログインまたはアカウント作成⁩

IGCSE, A-Level & AP