第29031题 单选题
执行以下Python代码,最终的输出结果是?

如下Python代码实现了嵌套列表的遍历累加,执行后将输出什么结果?

nested_list = [[1, 2], [3, 4], [5, 6]]
sum_result = 0
for sub in nested_list:
    for num in sub:
        sum_result += num
print(sum_result)
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析