0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

[Python]関数

Posted at

#関数定義
def 関数名():
□□実行する処理

def hello():
    print("hello")

#関数の呼び出し
関数名()

def hello():
    print("hello")

hello()

#多引数の関数
引数をカンマで区切る

def hello(name , greeting):
    print(name + "さん、" + greeting)

hello("tanaka" , "こんにちは")

出力結果
tanakaさん、こんにちは

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?