Python

【python】defを使って関数を作成する方法

def 関数名(引数)(
実行したい処理
)

def odd_checker(x)(
if x%2==0:
print(str(X) +’は偶数です’)
else:
print(str(X) +’は奇数です’)
)