题目详情
单选题 What will be the output of the following Python code? lst=[3,4,6,1,2] lst[1:2]=[7,8] print(lst) lst[3]=[9,10] print(lst)
A. [3, 7, 8, 6, 1, 2] [3, 7, 8, [9, 10], 1, 2]
B. [3,[7,8],6,1,2] [3, 7, 8, 9, 10, 1, 2]
C. [3,4,6,7,8] [9,10,4,6,7,8]
D. Syntax error

学科:Python程序设计(双语)
时间:2023-09-27 03:19:43
相关题目
相关作业
