[lang-ref] 複数の変数に代入 ( python )

def test_assign_to_multi_variable():
    # (a, b, c) = (1, 2, 3)

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

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

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

    a, b, c  =  1, 2, 3
    assert a == 1 and b == 2 and c == 3