# 変数の代入. 複数まとめて

# PowerShell

$a, $b, $c = 1, 2, 3

# Python

(a, b, c) = (1, 2, 3)

下記どれでもOK

(a, b, c) = [1, 2, 3]
(a, b, c) = (1, 2, 3)
[a, b, c] = (1, 2, 3)
 a, b, c  =  1, 2, 3

# Ruby

(a, b, c) = [1, 2, 3]
(a, b, c) = [1, 2, 3] # OK
(a, b, c) = (1, 2, 3) # NG
[a, b, c] = (1, 2, 3) # NG
 a, b, c  =  1, 2, 3  # NG

[ 📩 ご意見 ]