#NEWLINE# def do_OP_PICK( stack , require_minimal ) : #NEWLINE# #INDENT# "\n    >>> s = ['a', 'b', 'c', 'd', b'\x02']\n    >>> do_OP_PICK(s)\n    >>> print(s)\n    ['a', 'b', 'c', 'd', 'b']\n    " #NEWLINE# v = nonnegative_int_from_script_bytes ( stack . pop ( ) , require_minimal = require_minimal ) #NEWLINE# stack . append ( v [ ( ( - v ) - 1 ) ] )