def do_OP_LEFT(stack):
    pos = nonnegative_int_from_script_bytes(stack.pop())
    stack.append(stack.pop()[:pos])
>>> s = [b'abcdef', b'\3']
dataset/ETHPy150Open richardkiss/pycoin/pycoin/tx/script/microcode.py/do_OP_LEFT