【CPU全程班学员专属】期中冲刺练习册
聚焦期中考试高频考点与核心题型,帮助你在考前快速梳理知识框架、查漏补缺、强化解题思路。通过精选练习与针对性训练,稳步提升答题速度与准确率,让你更有把握冲刺理想成绩。
Create a function that takes a list of numbers between 1 and 10 (excluding one number) and returns the missing number.Examplesmissing_num([1, 2, 3, 4, 6, 7, 8, 9, 10]) ➞ 5 missing_num([7, 2, 3, 6, 5, 9, 1, 4, 8]) ➞ 10 missing_num([10, 5, 1, 2, 4, 6, 8, 3, 9]) ➞ 7NotesThe list will be unsorted.Only one number will be missing.
What is the result of 'a' < 'b'?
What is the value of ys after the following is evaluated?xs = [1, [7]] ys = xs.copy() xs[0] = 99
What is the value of x after the following code is executed?x = 10 def modify(val): val = val * 2 return val modify(x) modify(x) modify(x) modify(x)
What is the value of b after the following code is executed?a = [1, 2] b = a.append(30)
你的进度
已练 0 / 121 · 正确率 0%