{"idx": 0, "scratchpad_format": "def find(lst, key, value):\n for i, dic in enumerate(lst): # [STATE] 2 [/STATE]\n if dic[key] == value:\n return i\n return None\n\nfind([{'Variable': 'jenkins_admin_password', 'Type': 'password'}, {'Variable': 'ca_rootca_password', 'Type': 'password'}], 'Variable', 'something_not_there')", "loop_code": "1. def find(lst, key, value):\n2. for i, dic in enumerate(lst):\n3. if dic[key] == value:\n4. return i\n5. return None\n6.\n7. find([{'Variable': 'jenkins_admin_password', 'Type': 'password'}, {'Variable': 'ca_rootca_password', 'Type': 'password'}], 'Variable', 'something_not_there')", "question": "How many times will the loop on line 2 execute when 'find([{'Variable': 'jenkins_admin_password', 'Type': 'password'}, {'Variable': 'ca_rootca_password', 'Type': 'password'}], 'Variable', 'something_not_there')' is called?", "answer": "2"}
{"idx": 1, "scratchpad_format": "def _global_import(name):\n p = __import__(name, globals(), locals(), level=1) # [STATE] p =
\\n
\\n
\\n \\n \\n \u6b22\u8fce\u5206\u4eab\u5230\u670b\u53cb\u5708~\\n \\n \\n
\\n\\n
\\n
\\n \\n
\\n \\n
\\n \\n