Ask for a name · 名前を質問
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 · Getting input · 入力の取得 →
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行待ってテキストとして返します。変数に一旦保存してから、その変数を使用してください。
Read a name with input() and print "Hello, " then the name. For the input Mia, print "Hello, Mia". · input() で名前を入力して受け取り、「Hello, 」 followed by the name を出力してください。入力が Mia の場合、「Hello, Mia」を出力してください。
Click Run to see the output here. · 実行ボタンをクリックして出力を確認してください。