[lang-ref] ( get_keys ) ( python )

def test_get_keys():
    d = { 'A': 1, 'B': 2, 'C': 3 }
    keys = list(d.keys())
    assert keys == ['A', 'B', 'C']

    # can be this
    keys = list(d)
    assert keys == ['A', 'B', 'C']