[lang-ref] 複数の変数に代入 ( 一部は捨てる ) ( python )

def test_assign_to_multi_variable_discard_partially():
    # (a, _, c) = (1, 2, 3)
    (a, _, b, _, _, c) = [1, 2, 3, 4, 5, 6]
    assert a == 1 and b == 3 and c == 6
    assert _ == 5  # actually not discarded; _ is just a regular variable