Skip to content · ⁨コンテンツへスキップ⁩

Ask for a name · ⁨名前を質問⁩

English

Ask for a name

Read a name with input() and print "Hello, " then the name. For the input Mia, print "Hello, Mia".

input() waits for one line and hands it back as text. Store it in a variable first, then use that variable.

日本語

名前を聞く

input() で名前を入力して受け取り、「Hello, 」 followed by the name を出力してください。入力が Mia の場合、「Hello, Mia」を出力してください。

input() は1行待ってテキストとして返します。変数に一旦保存してから、その変数を使用してください。

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

IGCSE, A-Level & AP