Call a function · 関数を呼び出す
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 · Functions →
English
Call a function
greet is already written for you. Call it with "Mia" so the program prints "Hello, Mia".
Writing def only describes the function — nothing happens until you call it by name with brackets: greet("Mia"). The call goes at the left margin, outside the def.
日本語
関数を呼び出す
greetはすでに書かれています。"Mia"を引数として呼び出し、プログラムが"Hello, Mia"を出力するようにします。
defを書くことは関数を定義するだけで、括弧付きの名前での呼び出しをするまで何も起きません:greet("Mia")。呼び出しはdefの外側、左端の位置に行います。
greet is already written for you. Call it with "Mia" so the program prints "Hello, Mia". · greetはすでに書かれています。"Mia"を引数として呼び出し、プログラムが"Hello, Mia"を出力するようにします。
Click Run to see the output here. · 実行ボタンをクリックして出力を確認してください。