defキーワードで定義します。4.8. 関数を定義する - 4. その他の制御フローツール — Python 3.x ドキュメント
def function_name(arg1, arg2) return return_value