変数を代入する関数を書くとき
x = 1

def func_a():
__x=2
func_a()

def func_b():
__return 2
x = func_b()

どっちで書いた方がいいとかありますか?どっちでもいい?